Using Grails Spring Security Saml Plugin
keytool -import -alias myIdp -keystore keystore2.jks -file Idp.cer
keytool -genkey -alias myKey -keyalg RSA -keystore keystore2.jks
keytool -list -v -keystore keystore2.jks
keytool -delete -alias badKey -keystore keystore2.jks
grails.plugins.springsecurity.saml.active = true
grails.plugins.springsecurity.saml.metadata.sp.defaults = [
local: true,
alias: 'http://example.com/saml/metadata',
securityProfile: 'metaiop',
signingKey: 'mykey',
encryptionKey: 'mykey',
tlsKey: 'mykey',
requireArtifactResolveSigned: false,
requireLogoutRequestSigned: true,
requireLogoutResponseSigned: true ]
-Djava.endorsed.dirs=$CATALINA_HOME/endorsed