於 2014/7/18 下午 11:35, Richard Barnes 提到:
On Jul 15, 2014, at 11:05 PM, Chuck Lee <chu...@mozilla.com> wrote:

Yes, but it doesn't work because it also calls PK11_ExportPrivKeyInfo() to get 
the RSA private key info.
Why is this a problem?  PK11_ExportDERPrivateKeyInfo() works fine for 
WebCrypto.  Are you building in some other context than gecko?

--Richard


No, I just import it.

The key format I imported is encrypted PKCS 12, which is not supported in WebCrypto.
Maybe it's the format of the key cause the difference.

Also I have checked the attributes of private key right after it is imported, in PK11_ImportEncryptedPrivateKeyInfoAndReturnKey().
The attributes required for ExportDERPrivateKeyInfo() are not set.
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to