Private key decryption error: Unsupported keysize or algorithm
2 years ago
Originally Published: 2008-09-04
Article Number
000042859
Applies To
RSA Key Manager Client
Java Client

Issue
Private key decryption error: Unsupported keysize or algorithm
Trying to initialize Java Client gives the following exception:

com.rsa.kmc.KMException: Error loading KeyStore
        at com.rsa.kmc.x.G.a(Unknown Source)
        at com.rsa.kmc.x.G.a(Unknown Source)
        at com.rsa.kmc.KMConfig.<init>(Unknown Source)
        at RKM_Monitor.run(RKM_Monitor.java:48)
        at RKM_Monitor.main(RKM_Monitor.java:116)
Caused by: java.io.IOException: Private key decryption error: (java.lang.SecurityException: Unsupported keysize or algorithm parameters)
        at com.ibm.crypto.provider.PKCS12KeyStore.engineLoad(Unknown Source)
        at java.security.KeyStore.load(KeyStore.java:695)
        at com.rsa.kmc.x.G.a(Unknown Source)
        at com.rsa.kmc.x.G.a(Unknown Source)
        at com.rsa.kmc.KMConfig.<init>(Unknown Source)
        at RKM_Monitor.run(RKM_Monitor.java:48)
        at RKM_Monitor.main(RKM_Monitor.java:116)
Cause

The JCE Unlimited Strength Jurisdiction Policy files are not installed.


Resolution
Install the JCE Unlimited Strength Jurisdiction Policy files.  The locations are listed in the Prerequisites section of the Release Notes:

Table 1.  JDK Locations
JDK Version  Download Location
1.4  http://java.sun.com/j2se/1.4.2/download.html
http://java.sun.com/javase/downloads/index_jdk5.jsp
http://java.sun.com/javase/downloads/index.jsp

UPDATE: Java SE Downloads page:
http://www.oracle.com/technetwork/java/javase/downloads/index.html

Java Platform Technology Downloads page (JCE policy files for 1.4.2, 5.0, and 6.0):
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-java-plat-419418.html