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

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

Issue/Problem/Symptoms: 

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

Environment:  

SSO Access Gateway

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

Resolution/Workaround:

Install the “Java Cryptography Extension (JCE) Unlimited Strength Patch” from oracle.
http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

 

Additional Information: