Web Services security causes fault "java.security.InvalidKeyException: Public Key cannot be used to decrypt."
 Technote (FAQ)
 
This document applies only to the following language version(s):
English
 
Problem
Web Services security causes fault
"PrimaryMessage: WSEC5164E: An exception while decrypting the message:
java.security.InvalidKeyException: Public Key cannot be used to decrypt.
at com.ibm.crypto.provider.RSA.engineInit(Unknown Source) "
 
Cause
If keystores (jks or jceks) were created using ikeyman, then the above fault is seen in the Web Services response.
 
Solution

Use keytool instead of ikeyman tool.


See the following IBM® Redbooks® publication, Chapter 21, Page 480 for
"Generating sample key stores"

http://www.redbooks.ibm.com/redbooks/pdfs/sg246461.pdf

 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Web Services Security
Operating system(s): Windows
Software version: 6.0.2.7
Software edition:
Reference #: 1233155
IBM Group: Software Group
Modified date: Mar 24, 2006