After a successful Federation test of POST- and Artifact- Binding use cases, when you try to configure encryption of the Assertion or of the NameID there is an error on the Policy Server in the smps log "Error Encrypting Assertion." or "Error Encrypting NameID." The smtrace log also contains "AssertionHandler postProcess() failed". When this occurs the user gets a 500 error in the browser on the IDP side. The certifcate and private key used for encryption/decryption have been successfully added to the certificate store. Why do I get this error ?
All Policy Server versions on Solaris.
You get this error because you the order of the security providers of the java is incorrect.
On Solaris 10 you need to modifiy the order of Java security encryption provider.
By default, the file /usr/jdk/latest/jre/lib/security/java.security contains the following:
You should change the order and your file should be like:
KB : TEC510842