Thank you.

FIPS is not enabled so PK11_ImportSymKeyWithFlags() works for me. However
I'm unable to export the imported key using PK11_ExtractKeyValue() and
PK11_GetKeyData(). I suspect this is by design - keys are protected from
being exported?

As a work around, I have tried importing the key using
PK11_CreateGenericObject() instead, as shown below.



However PK11_CreateGenericObject() failed to create the object, and
PORT_GetError() returned -8018 (SEC_ERROR_UNKNOWN_PKCS11_ERROR)

Am I missing something?





--
View this message in context: 
http://mozilla.6506.n7.nabble.com/Importing-a-symmetic-key-into-NSS-database-tp286642p286742.html
Sent from the Mozilla - Cryptography mailing list archive at Nabble.com.
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to