Changes between Version 16 and Version 17 of idpiam2018


Ignore:
Timestamp:
Sep 12, 2018, 10:19:32 AM (6 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • idpiam2018

    v16 v17  
    3131*
    3232{{{
    33 vim /etc/environment```
     33vim /etc/environment
    3434}}}
    3535{{{
     
    189189
    190190
    191 12. Install Letsencrypt and enable HTTPS:
    192 *
    193 {{{
    194    add-apt-repository ppa:certbot/certbot
    195 }}}
    196 *
    197 {{{
    198    apt install python-certbot-apache
    199 }}}
    200 *
    201 {{{
    202    certbot --apache -d idp.YOUR-DOMAIN
    203 }}}
    204    
    205 {{{
    206    Plugins selected: Authenticator apache, Installer apache
    207    Enter email address (used for urgent renewal and security notices) (Enter 'c' to
    208    cancel): YOU@YOUR-DOMAIN
    209 
    210    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    211    Please read the Terms of Service at
    212    https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
    213    agree in order to register with the ACME server at
    214    https://acme-v02.api.letsencrypt.org/directory
    215    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    216    (A)gree/(C)ancel: A
    217 
    218    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    219    Would you be willing to share your email address with the Electronic Frontier
    220    Foundation, a founding partner of the Let's Encrypt project and the non-profit
    221    organization that develops Certbot? We'd like to send you email about our work
    222    encrypting the web, EFF news, campaigns, and ways to support digital freedom.
    223    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    224    (Y)es/(N)o: Y
    225    
    226    Obtaining a new certificate
    227    Performing the following challenges:
    228    http-01 challenge for idp.YOUR-DOMAIN
    229    Waiting for verification...
    230    Cleaning up challenges
    231    Created an SSL vhost at /etc/apache2/sites-available/idp-le-ssl.conf
    232    Enabled Apache socache_shmcb module
    233    Enabled Apache ssl module
    234    Deploying Certificate to VirtualHost /etc/apache2/sites-available/idp-le-ssl.conf
    235    Enabling available site: /etc/apache2/sites-available/idp-le-ssl.conf
    236    
    237    
    238    Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
    239    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    240    1: No redirect - Make no further changes to the webserver configuration.
    241    2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
    242    new sites, or if you're confident your site works on HTTPS. You can undo this
    243    change by editing your web server's configuration.
    244    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    245    Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
    246    Redirecting vhost in /etc/apache2/sites-enabled/rr3.conf to ssl vhost in /etc/apache2/sites-available/rr3-le-ssl.conf
    247    
    248    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    249    Congratulations! You have successfully enabled https://idp.YOUR-DOMAIN
    250 }}}
    251  
    252 
    253 
    254 13. (OPTIONAL) If you haven't follow the letsencrypt method Create a Certificate and a Key self-signed for HTTPS
     19112. Create a Certificate and a Key self-signed for HTTPS and enable secure web server. '''(Skip this step if you are installing IDP on production environment)'''
    255192*
    256193{{{
     
    261198   openssl req -x509 -newkey rsa:4096 -keyout /root/certificates/idp-key-server.key -out /root/certificates/idp-cert-server.crt -nodes -days 1095
    262199}}}
    263    If you purchased SSL certificates from a Public CA, move the Certificate and the Key file for HTTPS server to `/root/certificates`:
    264    
    265 *
    266 {{{
    267    mv /location-to-crts/idp-cert-server.crt /root/certificates
    268 }}}
    269 *
    270 {{{
    271    mv /location-to-crts/idp-key-server.key /root/certificates
    272 }}}
    273 *
    274 {{{
    275    mv /location-to-crts/PublicCA.crt /root/certificates
    276 }}}
     200   
    277201   
    278202   Then,
     
    286210   chmod 644 /root/certificates/idp-cert-server.crt
    287211}}}
    288 *
    289 {{{
    290    chmod 644 /root/certificates/PublicCA.crt
    291 }}}
     212
    292213
    293214   Create the file `/etc/apache2/sites-available/idp-ssl.conf` as follows:
     
    322243        SSLCertificateFile /root/certificates/idp-cert-server.crt
    323244        SSLCertificateKeyFile /root/certificates/idp-key-server.key
    324         SSLCertificateChainFile /root/certificates/publicCA.crt
     245        #SSLCertificateChainFile /root/certificates/publicCA.crt
    325246        ...
    326247      </VirtualHost>
     
    353274   </VirtualHost>
    354275}}}
     276
     27713. ('''Do this only on your production servers''') Skip '''step 12''' and Install Letsencrypt and enable HTTPS:
     278*
     279{{{
     280   add-apt-repository ppa:certbot/certbot
     281}}}
     282*
     283{{{
     284   apt install python-certbot-apache
     285}}}
     286*
     287{{{
     288   certbot --apache -d idp.YOUR-DOMAIN
     289}}}
     290   
     291{{{
     292   Plugins selected: Authenticator apache, Installer apache
     293   Enter email address (used for urgent renewal and security notices) (Enter 'c' to
     294   cancel): YOU@YOUR-DOMAIN
     295
     296   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     297   Please read the Terms of Service at
     298   https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
     299   agree in order to register with the ACME server at
     300   https://acme-v02.api.letsencrypt.org/directory
     301   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     302   (A)gree/(C)ancel: A
     303
     304   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     305   Would you be willing to share your email address with the Electronic Frontier
     306   Foundation, a founding partner of the Let's Encrypt project and the non-profit
     307   organization that develops Certbot? We'd like to send you email about our work
     308   encrypting the web, EFF news, campaigns, and ways to support digital freedom.
     309   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     310   (Y)es/(N)o: Y
     311   
     312   Obtaining a new certificate
     313   Performing the following challenges:
     314   http-01 challenge for idp.YOUR-DOMAIN
     315   Waiting for verification...
     316   Cleaning up challenges
     317   Created an SSL vhost at /etc/apache2/sites-available/idp-le-ssl.conf
     318   Enabled Apache socache_shmcb module
     319   Enabled Apache ssl module
     320   Deploying Certificate to VirtualHost /etc/apache2/sites-available/idp-le-ssl.conf
     321   Enabling available site: /etc/apache2/sites-available/idp-le-ssl.conf
     322   
     323   
     324   Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
     325   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     326   1: No redirect - Make no further changes to the webserver configuration.
     327   2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
     328   new sites, or if you're confident your site works on HTTPS. You can undo this
     329   change by editing your web server's configuration.
     330   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     331   Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
     332   Redirecting vhost in /etc/apache2/sites-enabled/rr3.conf to ssl vhost in /etc/apache2/sites-available/rr3-le-ssl.conf
     333   
     334   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     335   Congratulations! You have successfully enabled https://idp.YOUR-DOMAIN
     336}}}
     337 
     338
    355339
    356340== Configure Apache Tomcat 8 ==
     
    517501You may need to press enter on `Installation Directory: [/opt/shibboleth-idp]`
    518502
    519 25. Create and prepare the "'''shibboleth'''" MySQL DB to host the values of the several '''persistent-id''' and '''StorageRecords''' MySQL DB to host other useful information about user consent:
    520 
    521 * '''mysql_secure_installation'''
     50325. Create and prepare the "'''shibboleth'''" MySQL DB to host the values of the several '''persistent-id''' and '''!StorageRecords''' MySQL DB to host other useful information about user consent:
     504
     505* {{{mysql_secure_installation}}}
    522506
    523507{{{
     
    586570All done!
    587571}}}
    588 * log in to your MySQL Server: `mysql -u root -p'`   
     572* log in to your MySQL Server: `mysql -u root -p` Make sure to replace `##ROOT-DB-PASSWORD##`, `##USERNAME##`, `##PASSWORD##` with your own
    589573{{{
    590574    SET NAMES 'utf8';