Unrecoverable key exception

Robert Wille (RWILLE@novell.com)
Wed, 17 Mar 1999 17:03:40 -0700

Message-Id: <s6efe074.032@prv-mail25.provo.novell.com>
Date: Wed, 17 Mar 1999 17:03:40 -0700
From: "Robert Wille" <RWILLE@novell.com>
To: <java-security@java.sun.com>
Subject: Unrecoverable key exception

I put a PKCS8 file into a keystore using the KeyStore.setKeyEntry(String, =
byte[], Certificate[]) method and cannot retrieve it. The exception I get =
is java.security.UnrecoverableKeyException: Unsupported key protection =
algorithm. The OID of the encryption algorithm is 1.2.840.113549.1.5.3 =
(MD5 and DES). =20

If it makes any difference, the key's OID is 1.2.840.113549.1.1.1 (RSA). =
I have an RSA KeyFactory provider to enable the KeyStore to construct a =
PrivateKey.

Any idea what's gone wrong?