Hello,

I'm looking to take a SECKEYEncryptedPrivateKeyInfo object (from NSS)
or the bytes returned by the method
jss.crypto.CryptoStore.getEncryptedPrivateKeyInfo (from JSS) and build
a Java RSAPrivateKey.

Is this doable via KeyFactory.getInstance("RSA") and its
generatePrivate method with KeySpec = new PKCS8EncodedKeySpec(
encodedBytes ) where the encodedBytes would be found in the
SECKEYEncryptedPrivateKeyInfo's encryptedData object (in NSS), or the
bytes returned by jss.crypto.CryptoStore.getEncryptedPrivateKeyInfo
(from JSS)?

-- POC

Reply via email to