SAML Server: Difference between revisions
Content added Content deleted
m (added more) |
(added template, page config) |
||
Line 1: | Line 1: | ||
[[Category:Lab]] |
|||
__TOC__ |
|||
<br /> |
|||
Source: [https://www.helloitsliam.com/2014/12/23/install-configure-and-test-simplesamlphp-for-authentication-testing/ helloitsliam.com],[https://support.citrix.com/article/CTX200271 support.citrix.com], [https://simplesamlphp.org/docs/stable/simplesamlphp-idp simplesamlphp.org], [https://www.citrix.com/blogs/2012/08/24/174193098/ citrix.com] |
|||
Source |
|||
https://www.helloitsliam.com/2014/12/23/install-configure-and-test-simplesamlphp-for-authentication-testing/ |
|||
https://support.citrix.com/article/CTX200271 |
|||
https://simplesamlphp.org/docs/stable/simplesamlphp-idp |
|||
https://www.citrix.com/blogs/2012/08/24/174193098/ |
|||
*Prerequisites: |
|||
Ubuntu Server - VM or Physical box |
|||
Internet connectivity |
|||
*Update Ubuntu |
|||
sudo apt-get update |
|||
sudo apt-get upgrade |
sudo apt-get upgrade |
||
*Install PHP, Apache2 & related libraries: |
|||
sudo apt-get install php7.0 apache2 php7.0-mcrypt php7.0-ldap php7.0-mysql libapache2-mod-php7.0 php-xml |
sudo apt-get install php7.0 apache2 php7.0-mcrypt php7.0-ldap php7.0-mysql libapache2-mod-php7.0 php-xml |
||
*Installing SimpleSAMLphp binaries: |
|||
cd /var |
cd /var |
||
sudo wget https://github.com/simplesamlphp/simplesamlphp/releases/download/v1.14.12/simplesamlphp-1.14.12.tar.gz |
sudo wget https://github.com/simplesamlphp/simplesamlphp/releases/download/v1.14.12/simplesamlphp-1.14.12.tar.gz |
||
Line 18: | Line 25: | ||
cd simplesamlphp/ |
cd simplesamlphp/ |
||
*Configuring SimpleSAML php: |
|||
sudo nano /var/simplesamlphp/config/config.php |
sudo nano /var/simplesamlphp/config/config.php |
||
sudo nano /var/simplesamlphp/config/authsources.php |
sudo nano /var/simplesamlphp/config/authsources.php |
||
Line 23: | Line 31: | ||
sudo nano /var/simplesamlphp/metadata/saml20-sp-remote.php |
sudo nano /var/simplesamlphp/metadata/saml20-sp-remote.php |
||
*Pointing Apache to SimpleSAMLphp |
|||
sudo nano /etc/apache2/sites-available/000-default.conf |
sudo nano /etc/apache2/sites-available/000-default.conf |
||
*Now check if application is accessible over HTTP: |
|||
Now check if the webpage is available on below page: |
|||
http://<ip-address-of-server>/simplesamlphp |
http://<ip-address-of-server>/simplesamlphp |
||
*Enabling Secure (read SSL) access: |
|||
cd /var |
|||
⚫ | |||
⚫ | |||
sudo openssl genrsa -des3 -out Certificate.key 4096 |
sudo openssl genrsa -des3 -out Certificate.key 4096 |
||
sudo openssl rsa -in Certificate.key -out Certificate.pem |
sudo openssl rsa -in Certificate.key -out Certificate.pem |
||
sudo openssl req -new -key Certificate.key -out Certificate.csr |
sudo openssl req -new -key Certificate.key -out Certificate.csr |
||
sudo openssl x509 -req -days 9999 -in Certificate.csr -signkey Certificate.key -out Certificate.crt |
sudo openssl x509 -req -days 9999 -in Certificate.csr -signkey Certificate.key -out Certificate.crt |
||
⚫ | |||
⚫ | |||
sudo mv /var/Certificate.key /etc/apache2/ssl |
|||
sudo mv /var/Certificate.csr /etc/apache2/ssl |
|||
sudo mv /var/Certificate.crt /etc/apache2/ssl |
|||
sudo mv /var/Certificate.pem /etc/apache2/ssl |
|||
sudo a2enmod ssl |
sudo a2enmod ssl |
||
Line 54: | Line 58: | ||
sudo service apache2 restart |
sudo service apache2 restart |
||
Now the page should be available over https: |
*Now the page should be available over https: |
||
https://<ip-address-of-server>/simplesamlphp |
|||
<br /> |
|||
;References |
|||
<references/> |
|||
<br /> |
|||
<br /> |
|||
<br /> |
|||
{{DISQUS}} |