This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
docpublic:systemes:shibboleth:idpv3x [2018/12/29 11:06] procacci@tem-tsp.eu [contexte] |
docpublic:systemes:shibboleth:idpv3x [2019/01/02 21:57] (current) procacci@tem-tsp.eu [SSO CAS] |
||
|---|---|---|---|
| Line 32: | Line 32: | ||
| < | < | ||
| - | [root@idp3 ~]# yum install java-1.8.0-openjdk-devel.x86_64 | + | [root@idp34 ~]# yum install java-1.8.0-openjdk-devel.x86_64 |
| - | Install | + | Installation |
| - | Total download size: 46 M | + | Taille totale des téléchargements : 48 M |
| - | Installed size: 156 M | + | Taille d' |
| Is this ok [y/d/N]: y | Is this ok [y/d/N]: y | ||
| - | Installed: | + | Installé : |
| - | java-1.8.0-openjdk-devel.x86_64 1:1.8.0.65-2.b17.el7_1 | + | java-1.8.0-openjdk-devel.x86_64 1:1.8.0.191.b12-1.el7_6 |
| - | Dependency Installed: | + | Dépendances installées : |
| - | alsa-lib.x86_64 0:1.0.28-2.el7 | + | alsa-lib.x86_64 0:1.1.6-2.el7 |
| - | | + | dejavu-fonts-common.noarch 0:2.33-6.el7 |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | libXfont.x86_64 0:1.4.7-3.el7_1 libXi.x86_64 0:1.7.2-2.1.el7 | + | |
| - | | + | libXcomposite.x86_64 0:0.4.4-4.1.el7 |
| - | | + | |
| - | | + | |
| - | | + | |
| - | python-lxml.x86_64 0: | + | |
| - | tzdata-java.noarch 0:2015g-1.el7 | + | lksctp-tools.x86_64 0: |
| - | xorg-x11-fonts-Type1.noarch 0: | + | python-lxml.x86_64 0: |
| + | tzdata-java.noarch 0:2018g-1.el7 | ||
| + | xorg-x11-fonts-Type1.noarch 0: | ||
| - | Complete! | + | Terminé ! |
| </ | </ | ||
| Line 67: | Line 69: | ||
| < | < | ||
| - | [root@idp3 ~]# java -version | + | [root@idp34 ~]# java -version |
| - | openjdk version "1.8.0_65" | + | openjdk version "1.8.0_191" |
| - | OpenJDK Runtime Environment (build 1.8.0_65-b17) | + | OpenJDK Runtime Environment (build 1.8.0_191-b12) |
| - | OpenJDK 64-Bit Server VM (build 25.65-b01, mixed mode) | + | OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode) |
| </ | </ | ||
| Line 77: | Line 80: | ||
| < | < | ||
| [root@idp3 ~]# yum install tomcat tomcat-admin-webapps | [root@idp3 ~]# yum install tomcat tomcat-admin-webapps | ||
| - | |||
| - | Installation | ||
| - | |||
| - | Taille totale des téléchargements : | ||
| - | Taille d' | ||
| Installé : | Installé : | ||
| - | tomcat.noarch 0:7.0.54-2.el7_1 | + | tomcat.noarch 0:7.0.76-8.el7_5 tomcat-admin-webapps.noarch 0:7.0.76-8.el7_5 |
| </ | </ | ||
| Line 137: | Line 135: | ||
| http:// | http:// | ||
| - | ==== proxy-ajp ===== | + | ==== proxy-ajp |
| mise en place d'un proxy ajp pour une gestion de TLS et ports par defaut (80/443) par apache | mise en place d'un proxy ajp pour une gestion de TLS et ports par defaut (80/443) par apache | ||
| + | il faut installer le mod_ssl d' | ||
| < | < | ||
| - | [root@idpmt3 | + | [root@idp34 tomcat]# yum install mod_ssl |
| + | Installé : | ||
| + | mod_ssl.x86_64 1: | ||
| + | </ | ||
| + | |||
| + | et le configurer avec nos certificats | ||
| + | |||
| + | < | ||
| + | [root@idp34 certs]#grep ^SSL / | ||
| + | SSLCertificateFile / | ||
| + | SSLCertificateKeyFile / | ||
| + | SSLCertificateChainFile / | ||
| + | </ | ||
| + | |||
| + | enfin configurer le proxy-ajp pour rediriger les requetes https d' | ||
| + | |||
| + | < | ||
| + | [root@idp3' | ||
| ProxyPass /idp/ ajp:// | ProxyPass /idp/ ajp:// | ||
| ProxyPass /manager/ ajp:// | ProxyPass /manager/ ajp:// | ||
| Line 151: | Line 167: | ||
| http:// | http:// | ||
| - | ===== TLS https ===== | + | puis en https via le proxy-ajp sans precision du port 443 |
| - | installation du module apache (frontal proxy ajp ) pour SSL/TLS | + | https:// |
| - | < | ||
| - | [root@idp3 ~]# yum install mod_ssl | ||
| - | Installé : | ||
| - | mod_ssl.x86_64 1: | ||
| - | Terminé ! | ||
| - | </ | ||
| - | declarer le certificat et sa clé , wildcard possible | ||
| - | < | ||
| - | [root@idp3 ~]# grep ^SSL / | ||
| - | SSLCertificateFile / | ||
| - | SSLCertificateKeyFile / | ||
| - | SSLCACertificateFile / | ||
| - | </ | ||
| - | |||
| - | test | ||
| - | |||
| - | https:// | ||
| ===== ntp ==== | ===== ntp ==== | ||
| Line 191: | Line 190: | ||
| < | < | ||
| - | [root@idp3 ~]# wget http:// | + | [root@idp34 ~]# wget https:// |
| - | [root@idp3 ~]# mkdir /opt/src | + | --2019-01-02 14: |
| - | [root@idp3 ~]# mv shibboleth-identity-provider-3.2.1.tar.gz /opt/src/ | + | [root@idp34 ~]# mkdir /opt/src |
| - | [root@idp3 src]# tar xvfz shibboleth-identity-provider-3.2.1.tar.gz | + | [root@idp34 ~]# mv shibboleth-identity-provider-3.4.2.tar.gz /opt/src/ |
| - | [root@idp3 src]# cd shibboleth-identity-provider-3.2.1/ | + | [root@idp34 ~]# cd /opt/src/ ; tar xvfz shibboleth-identity-provider-3.4.2.tar.gz |
| - | [root@idp3 shibboleth-identity-provider-3.2.1]# ls | + | [root@idp34 src]# cd shibboleth-identity-provider-3.4.2 |
| - | bin conf credentials | + | [root@idp34 shibboleth-identity-provider-3.4.2]# ls |
| + | bin conf credentials | ||
| </ | </ | ||
| Line 206: | Line 205: | ||
| < | < | ||
| - | [root@idp3 shibboleth-identity-provider-3.2.1]# export JAVA_HOME=/ | + | [root@idp34 shibboleth-identity-provider-3.4.2]# export JAVA_HOME=/ |
| - | [root@idp3 shibboleth-identity-provider-3.2.1]# ./ | + | [root@idp34 shibboleth-identity-provider-3.4.2]# ./ |
| - | Source (Distribution) Directory: [/ | + | Source (Distribution) Directory |
| Installation Directory: [/ | Installation Directory: [/ | ||
| - | Hostname: [localhost.localdomain] | + | Hostname: [idp34.int-evry.fr] |
| - | idp3.tem-tsp.eu | + | idp3.imtbstsp.eu |
| - | SAML EntityID: [https:// | + | SAML EntityID: [https:// |
| - | Attribute Scope: [localdomain] | + | Attribute Scope: [int-evry.fr] |
| - | tem-tsp.eu | + | imtbstsp.eu |
| - | Backchannel PKCS12 Password: | + | Backchannel PKCS12 Password: |
| Re-enter password: | Re-enter password: | ||
| - | Cookie Encryption Key Password: | + | Cookie Encryption Key Password: |
| - | Password cannot be zero length | + | |
| - | Cookie | + | |
| Re-enter password: | Re-enter password: | ||
| Warning: / | Warning: / | ||
| + | Warning: / | ||
| Warning: / | Warning: / | ||
| Warning: / | Warning: / | ||
| Warning: / | Warning: / | ||
| - | Warning: / | + | Generating Signing Key, CN = idp3.imtbstsp.eu URI = https:// |
| - | Generating Signing Key, CN = idpmt3.tem-tsp.eu URI = https:// | + | |
| ...done | ...done | ||
| - | Creating Encryption Key, CN = idpmt3.tem-tsp.eu URI = https:// | + | Creating Encryption Key, CN = idp3.imtbstsp.eu URI = https:// |
| ...done | ...done | ||
| - | Creating Backchannel keystore, CN = idpmt3.tem-tsp.eu URI = https:// | + | Creating Backchannel keystore, CN = idpr3.imtbs-tsp.eu URI = https:// |
| ...done | ...done | ||
| Creating cookie encryption key files... | Creating cookie encryption key files... | ||
| Line 241: | Line 238: | ||
| BUILD SUCCESSFUL | BUILD SUCCESSFUL | ||
| + | Total time: 2 minutes 14 seconds | ||
| + | |||
| </ | </ | ||
| Line 246: | Line 245: | ||
| < | < | ||
| - | [root@idp3 shibboleth-identity-provider-3.2.1]# ls -l / | + | [root@idp34 shibboleth-identity-provider-3.4.2]# ls -l / |
| total 32 | total 32 | ||
| - | -rw-r--r-- 1 root root 1168 23 mai 22:14 idp-backchannel.crt | + | -rw-r--r-- 1 root root 1517 2 janv. 14:23 idp-backchannel.crt |
| - | -rw-r--r-- 1 root root 2554 23 mai 22:14 idp-backchannel.p12 | + | -rw-r--r-- 1 root root 3399 2 janv. 14:23 idp-backchannel.p12 |
| - | -rw-r--r-- 1 root root 1164 23 mai 22:14 idp-encryption.crt | + | -rw-r--r-- 1 root root 1517 2 janv. 14:23 idp-encryption.crt |
| - | -rw------- 1 root root 1675 23 mai 22:14 idp-encryption.key | + | -rw------- 1 root root 2455 2 janv. 14:23 idp-encryption.key |
| - | -rw-r--r-- 1 root root 1164 23 mai 22:14 idp-signing.crt | + | -rw-r--r-- 1 root root 1517 2 janv. 14:23 idp-signing.crt |
| - | -rw------- 1 root root 1675 23 mai 22:14 idp-signing.key | + | -rw------- 1 root root 2459 2 janv. 14:23 idp-signing.key |
| - | -rw-r--r-- 1 root root | + | -rw-r--r-- 1 root root |
| - | -rw-r--r-- 1 root root 48 23 mai 22:14 sealer.kver | + | -rw-r--r-- 1 root root 47 2 janv. 14:23 sealer.kver |
| </ | </ | ||
| Line 261: | Line 260: | ||
| < | < | ||
| - | [root@idp3 shibboleth-identity-provider-3.2.1]# chown -R tomcat / | + | [root@idp34 shibboleth-identity-provider-3.4.2]# chown -R tomcat / |
| </ | </ | ||
| Line 277: | Line 276: | ||
| </ | </ | ||
| - | quelques secondes apres | + | quelques secondes apres grace a l' |
| < | < | ||
| - | root@idp3 localhost]# ls -l / | + | [root@idp34 shibboleth-identity-provider-3.4.2]# ls -l / |
| total 32 | total 32 | ||
| - | drwxr-xr-x 2 tomcat tomcat 4096 25 mai 20:38 css | + | drwxr-xr-x 2 tomcat tomcat 4096 2 janv. 14:28 css |
| - | drwxr-xr-x 2 tomcat tomcat 4096 25 mai 20:38 images | + | drwxr-xr-x 2 tomcat tomcat 4096 2 janv. 14:28 images |
| - | -rw-r--r-- 1 tomcat tomcat 1008 23 mai 22:14 index.jsp | + | -rw-r--r-- 1 tomcat tomcat 1008 2 janv. 14:23 index.jsp |
| - | drwxr-xr-x 2 tomcat tomcat 4096 25 mai 20:38 js | + | drwxr-xr-x 2 tomcat tomcat 4096 2 janv. 14:28 js |
| - | drwxr-xr-x 2 tomcat tomcat 4096 25 mai 20:38 META-INF | + | drwxr-xr-x 2 tomcat tomcat 4096 2 janv. 14:28 META-INF |
| - | drwxr-xr-x 5 tomcat tomcat 4096 25 mai 20:38 WEB-INF | + | drwxr-xr-x 5 tomcat tomcat 4096 2 janv. 14:28 WEB-INF |
| - | -rw-r--r-- 1 tomcat tomcat | + | -rw-r--r-- 1 tomcat tomcat |
| </ | </ | ||
| Line 304: | Line 304: | ||
| en effet il faut ajouter la librairie jstl (cf http:// | en effet il faut ajouter la librairie jstl (cf http:// | ||
| - | cf aussi https:// | + | cf aussi https:// |
| < | < | ||
| - | [root@idp3 ~]# cd / | + | [root@idp34 shibboleth-identity-provider-3.4.2]# cd / |
| - | [root@idp3 lib]# wget http:// | + | [root@idp34 lib]# wget http:// |
| - | [root@idp3 lib]# systemctl restart tomcat | + | 2019-01-02 14:34:08 (9,27 MB/s) - «jstl-1.2.jar» sauvegardé [414240/ |
| + | [root@idp34 lib]# systemctl restart tomcat | ||
| </ | </ | ||
| + | Pour l' | ||
| + | |||
| + | < | ||
| + | # vim / | ||
| + | < | ||
| + | ... | ||
| + | < | ||
| + | |||
| + | <entry key=" | ||
| + | <bean id=" | ||
| + | p: | ||
| + | </ | ||
| + | ... | ||
| + | </ | ||
| + | |||
| + | |||
| + | maintenant accessible en https:// | ||
| acces status possible en shell également | acces status possible en shell également | ||
| < | < | ||
| - | [root@idp3 ~]# / | + | [root@idp34 bin]# / |
| ### Operating Environment Information | ### Operating Environment Information | ||
| operating_system: | operating_system: | ||
| - | operating_system_version: | + | operating_system_version: |
| operating_system_architecture: | operating_system_architecture: | ||
| - | jdk_version: | + | jdk_version: |
| - | available_cores: | + | available_cores: |
| - | used_memory: | + | used_memory: |
| maximum_memory: | maximum_memory: | ||
| ### Identity Provider Information | ### Identity Provider Information | ||
| - | idp_version: | + | idp_version: |
| - | start_time: | + | start_time: |
| - | current_time: | + | current_time: |
| - | uptime: | + | uptime: |
| - | service: shibboleth.LoggingService | ||
| - | last successful reload attempt: 2016-06-21T08: | ||
| - | last reload attempt: 2016-06-21T08: | ||
| - | .... | ||
| </ | </ | ||
| - | Pour l' | ||
| - | < | ||
| - | CT-a84f4e90 shibboleth-identity-provider-3.3.0# | ||
| - | < | ||
| - | ... | ||
| - | < | ||
| - | |||
| - | <entry key=" | ||
| - | <bean id=" | ||
| - | p: | ||
| - | </ | ||
| - | ... | ||
| - | </ | ||
| Line 386: | Line 387: | ||
| < | < | ||
| - | [root@idp3 shibboleth-idp]# wget -O / | + | [root@idp34]# cd / |
| + | [root@idp34 credentials]# | ||
| </ | </ | ||
| Line 393: | Line 396: | ||
| < | < | ||
| [root@idp3 conf]# tail -18 metadata-providers.xml | [root@idp3 conf]# tail -18 metadata-providers.xml | ||
| + | |||
| + | < | ||
| + | < | ||
| + | xsi: | ||
| + | backingFile=" | ||
| + | metadataURL=" | ||
| + | |||
| + | < | ||
| + | requireSignedRoot=" | ||
| + | certificateFile=" | ||
| + | </ | ||
| + | </ | ||
| + | |||
| | | ||
| - | <!-- Federation de test renater --> | + | |
| - | < | + | |
| - | xsi: | + | |
| - | backingFile=" | + | |
| - | metadataURL=" | + | |
| - | + | ||
| - | < | + | |
| - | requireSignedRoot=" | + | |
| - | certificateFile=" | + | |
| - | </ | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| </ | </ | ||
| Line 416: | Line 420: | ||
| < | < | ||
| - | [root@idp3 conf]# systemctl restart tomcat.service | + | [root@idp34 conf]# systemctl restart tomcat.service |
| - | [root@idp3 conf]# ls -l ../ | + | |
| - | total 6480 | + | [root@idp34 conf]# |
| - | -rw-r--r-- | + | total 31308 |
| - | -rw-r--r-- | + | -rw-r--r-- 1 tomcat root |
| + | -rw-r--r-- 1 tomcat tomcat | ||
| </ | </ | ||
| Line 430: | Line 436: | ||
| idp-process.log : | idp-process.log : | ||
| - | 2016-06-21 18:55:56,043 - INFO [org.opensaml.saml.metadata.resolver.impl.AbstractReloadingMetadataResolver: | + | |
| - | 2016-06-21 18:55:56,062 - INFO [Shibboleth-Audit.Reload: | + | 2019-01-02 14:48:18,248 - 127.0.0.1 - INFO [org.opensaml.saml.metadata.resolver.impl.AbstractReloadingMetadataResolver:574] - Metadata Resolver FileBackedHTTPMetadataResolver RenaterTestMetadata: New metadata successfully loaded for ' |
| + | 2019-01-02 14:48:18,250 - 127.0.0.1 | ||
| + | 2019-01-02 14:48:18,268 - 127.0.0.1 | ||
| + | |||
| </ | </ | ||
| Line 642: | Line 652: | ||
| https:// | https:// | ||
| - | < | ||
| - | [root@idp3]# | ||
| - | [root@idp3 src]# git clone https:// | + | < |
| - | Cloning into 'shib-cas-authn3-git-master' | + | [root@idp34 src]# wget https:// |
| - | remote: Counting objects: 1172, done. | + | [root@idp34 src]# tar xvf shib-cas-authn3-3.2.3.tar |
| - | remote: Total 1172 (delta 0), reused 0 (delta 0), pack-reused 1172 | + | ... |
| - | Receiving objects: 100% (1172/1172), 991.61 KiB | 884.00 KiB/s, done. | + | shib-cas-authn3-3.2.3/edit-webapp/ |
| - | Resolving deltas: 100% (427/427), done. | + | shib-cas-authn3-3.2.3/edit-webapp/ |
| + | shib-cas-authn3-3.2.3/edit-webapp/ | ||
| + | .. | ||
| - | [root@idp3 src]# cp -R /opt/src/shib-cas-authn3-git-master/IDP_HOME/ | + | [root@idp34 src]# cp shib-cas-authn3-3.2.3/edit-webapp/WEB-INF/lib/ |
| - | [root@idp3 src]# wget https:// | + | |
| - | [root@idp3 src]# mv shib-cas-authenticator-3.0.0.jar / | + | |
| - | [root@idp3 src]# wget http:// | + | |
| - | [root@idp3 src]# mv cas-client-core-3.3.3.jar / | + | [root@idp34 src]# cp -R shib-cas-authn3-3.2.3/ |
| + | [root@idp34 src]# ls -ltr /opt/ | ||
| + | total 8 | ||
| + | -rw-r--r-- 1 root root 2290 2 janv. 21:23 shibcas-authn-flow.xml | ||
| + | -rw-r--r-- 1 root root 3241 2 janv. 21:23 shibcas-authn-beans.xml | ||
| + | [root@idp34 src]# wget http:// | ||
| + | [root@idp34 src]# cp cas-client-core-3.5.1.jar / | ||
| </ | </ | ||
| Line 688: | Line 701: | ||
| < | < | ||
| + | |||
| + | [root@idp34 conf]# cd / | ||
| + | [root@idp34 authn]# cp general-authn.xml general-authn.xml.dist | ||
| + | |||
| [root@idp3 authn]# diff general-authn.xml general-authn.xml.dist | [root@idp3 authn]# diff general-authn.xml general-authn.xml.dist | ||
| 93,98d92 | 93,98d92 | ||