SPS: Message: java.security.InvalidKeyException: Illegal key size

Document ID : KB000047547
Last Modified Date : 14/02/2018
Show Technical Document Details


I am testing SPS Oauth2 client with our internal Oauth Server. After receiving code from the browser,

SPS returns 500 and dumps the error in the log. I can reproduce the issue any time by resubmitting same request to SPS. there are steps for reproduction of the issue, include them in this section.

The error related to “Dispatcher object thrown unknown exception while processing the request message. Message: java.security.InvalidKeyException: Illegal key size.” is issued in the affwebserv.log


SSO Access Gateway

Illegal key size error message is referring to java not supporting the certificate key size.


Install the “Java Cryptography Extension (JCE) Unlimited Strength Patch” from oracle.


Additional Information: