Use Case:
ConnectALL is setup to use PingFederate SSO and setup is working fine.
Now server certificate has expired and needs to be renewed on PingFederate side. Below article covers the steps to be followed to make ConnectALL SSO work with new server certificate.
ConnectALL 3.x
openssl pkcs12 -in /<location>/servercert.pfx -clcerts -nokeys -out onlycert.crt
Enter Import Password: Enter the PFX cert password
openssl pkcs12 -in /<location>/servercert.pfx -nocerts -nodes -out onlykey.key
Enter Import Password: Enter the PFX cert password
openssl pkcs12 -in /<location>/servercert.pfx -nocerts -nokeys -nodes -out Certificate_Chain.crt
Enter Import Password: Enter the PFX cert password
So now you have-
Certificate_Chain
.crtopenssl pkcs12 -export -in onlycert.crt -inkey onlykey.key -CAfile Certificate_Chain.crt -caname root -name <alias> -out SSO_Keystore.jks
Enter Export Password: <enter password you need>
Verifying - Enter Export Password:
<enter password you need>
Make sure the value of <alias> matches with value for property saml.keystore.default.certkey in ..UI/tomcat/conf/ConnectAll/saml//samlConfiguration.properties and the password you enter to run this command should match with value for property saml.keystore.privatekey.passwords
When you execute the command you'll be asked for a password(<enter password you need>) for the PKCS12 keystore. You can choose one, but for the sake of simplicity changeit is a good option, since it is the default password that Tomcat expects. Once the command has completed executing, verify that keystorefile now exists.
keytool -importkeystore -deststorepass
-destkeypass <enter password you need>
-destkeystore samlKeystore.jks -srckeystore SSO_Keystore.jks -srcstoretype PKCS12 -srcstorepass changeit -alias <alias><enter password you need>
Importing keystore SSO_Keystore.jks to samlKeystore.jks...