RFR: 8209398: sun/security/pkcs11/KeyStore/SecretKeysBasic.sh failed with "PKCS11Exception: CKR_ATTRIBUTE_SENSITIVE"

Weijun Wang weijun at openjdk.java.net
Wed Dec 22 00:43:12 UTC 2021


On Tue, 14 Dec 2021 18:33:47 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

> Can someone help review this small fix? NSS returns PKCS11 CKR_ATTRIBUTE_SENSITIVE error when trying to retrieve CKA_VALUE out of its token keys. So this fix is to add special handling for NSS token secret keys. There is already an existing regression test which detects this and disabled in ProblemList.txt. Removing that test from ProblemList.txt to verify this fix.
> 
> Thanks,
> Valerie

What about here?
https://github.com/openjdk/jdk/blob/a5d7de235101696463dba22792703c6809ff7fc4/src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11RSAKeyFactory.java#L280

-------------

PR: https://git.openjdk.java.net/jdk/pull/6837


More information about the security-dev mailing list