I snagged some code off the list a while back to export a key/cert as a 
PKCS12 file which I got working just fine for my application.  There's a 
deprecation warning generated from my use of the KeyGenerator class.

The problem stems from the decrypt method in EncryptedPrivateKeyInfo 
which needs a KeyGenerator.CharToByteConverter passed in as its second 
parameter.  The whole KeyGenerator class is deprecated with the 
following note: Deprecated. Use the JCA interface instead 
(KeyGenerator).  The unecrypted key gets put in a SafeBag as part of the 
"PFX" generation.  I also take the opportunity to snag encryption keys 
and send them off for archiving.

Is this something I should file an enhancement request for in bugzilla?

Thanks,
Dave
(I hate ASN.1)
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to