1. perform fresh install of EM, verify that SAML works with internal IdP
introscope.saml.enable=true
introscope.saml.internalIdp.enable=true
2. change configuration to external IdP, for this you would need to:
a. turn off internal IdP
introscope.saml.internalIdp.enable=false
b. set urls for external IdP
introscope.saml.idpUrl=
c. on IdP side, register SP with the default private key that comes with EM
d. import IdP public key into EM
The IdP's public key can be found in IdP's metadata file.
Follow the steps listed below to import the certificate into the keystore.
- Copy the certificate information in IdP metadata into a new file (e.g: idp_public.pem). The certificate in IdP metadata is in format called PEM
- Add header and footer to the new file. After adding header and footer, the file should look similar to this:
-----BEGIN CERTIFICATE-----
MIIDeTCCAmGgAwIBAgIEb1CaGjANBgkqhkiG9w0BAQsFADBtMQswCQYDVQQGEwJDWjEXMBUGA1UE
[..]
z6LUS/iuMCCtjoA1FGMsF1EZiQ2Pt/MPZgPAAsMrZWkikXqNke4=
-----END CERTIFICATE-----
- Save the file.
- Convert the file from PEM to DER format using openssl
openssl x509 -outform der -in idp_public.pem -out idp_public.der
- Import the certificate in DER format into the EM/Webview keystore using keytool
keytool -import -alias your-alias -keystore keystore -file idp_public.der
The password for the keystore is "password" without the enclosing quotes.
- Verify that SAML login works.
3. replace default SP private key with new one generated by customer. This means importing it with alias spprivatekey and updating SP registration on IdP side. verify that it works.