Home‎ > ‎SSO Single Sign-On‎ > ‎

Installing SimpleSAML

Installing SimpleSAML
This guide was written using Debian based ( e.g. Ubuntu ) operating system. In other distributions just change the "apt-get" to their respective package manager tool. SimpleSAML can be installed on every Operating System that supports PHP.

Prerequisites:
  • Apache 2
  • PHP 5
  • SimpleSAML >= 1.12
  • LDAP Server
Instructions:
  • Install and run apache2
    • sudo su
    • apt-get update
    • apt-get install apache2
  • Install php5
    • apt-get install php5 libapache2-mod-php5
  • Download and extract SimpleSAML
    • cd /var/www
    • wget https://simplesamlphp.org/res/downloads/simplesamlphp-1.12.0.tar.gz
    • tar -xvf simplesamlphp-1.12.0.tar.gz
  • The content of the extracted folder must be on www root ( /var/www/ ) and the "www" that is inside must be renamed to "simplesaml"
    • mv -f simplesamlphp-1.12.0/* .
    • mv -f www simplesaml
    • rm -fr simplesamlphp-1.12.0
  • Generate certificates, go to /var/www/cert and generate the certificates
    • $ cd /var/www/cert
    • $ openssl genrsa -des3 -out server.key 1024 
    • $ openssl rsa -in server.key -out server.pem
    • $ openssl req -new -key server.key -out server.csr
    • $ openssl x509 -req -days 9999 -in server.csr -signkey server.key -out server.crt
  • Return to /var/www directory
    • $ cd /var/www
  • The structure is copied as needed. Then we need to configure the following files:
    • Edit the config/config.php file and set to true the enable.saml20-idp variable
      • nano config/config.php
        • 'enable.saml20-idp'             => true,
  • The tool is ready to be configured.
Comments