Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8209398

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

XMLWordPrintable

        Beginning test run SecretKeysBasic...
        nssLibDir: /scratch/mesos/jib-master/install/jpg/tests/jdk/nsslib/nsslib-macosx_x64/3.35/nsslib-macosx_x64-3.35.zip/nsslib/
        Running test with provider SunPKCS11-nss (security manager disabled) ...
        softkey> javax.crypto.spec.SecretKeySpec@fffe8ae6
        ALGO=AES
        [RAW] VALUE=c68c8358f7e7bfab80a9e0d382f76326
        skey1> SunPKCS11-nss DESede secret key, 168 bits (id 1, session object, not sensitive, extractable)
        ALGO=DESede
        [RAW] VALUE=4a46a2f26ea8b392910bf7730440798cec540d891ace194f
        skey2> SunPKCS11-nss DESede secret key, 168 bits (id 2, session object, not sensitive, extractable)
        ALGO=DESede
        [RAW] VALUE=043e1c7cb6cb6275238fc8295b7cb3e373670134eff45d1c
        nssLibDir: /scratch/mesos/jib-master/install/jpg/tests/jdk/nsslib/nsslib-macosx_x64/3.35/nsslib-macosx_x64-3.35.zip/nsslib/
        libsoftokn3 version = 3.35. ECC Basic.
        nssLibDir: /scratch/mesos/jib-master/install/jpg/tests/jdk/nsslib/nsslib-macosx_x64/3.35/nsslib-macosx_x64-3.35.zip/nsslib/
        libnss3 version = 3.35. ECC None.
        Number of entries: 0
        Test against nss Failed!
        ----------System.err:(15/983)----------
        Exception in thread "main" java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_SENSITIVE
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11Key$P11SecretKey.getEncodedInternal(P11Key.java:447)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11Key.getEncoded(P11Key.java:137)
        at SecretKeysBasic.checkSecretKeyEntry(SecretKeysBasic.java:120)
        at SecretKeysBasic.doTest(SecretKeysBasic.java:169)
        at SecretKeysBasic.main(SecretKeysBasic.java:83)
        at PKCS11Test.premain(PKCS11Test.java:179)
        at PKCS11Test.testNSS(PKCS11Test.java:558)
        at PKCS11Test.main(PKCS11Test.java:215)
        at PKCS11Test.main(PKCS11Test.java:191)
        at SecretKeysBasic.main(SecretKeysBasic.java:46)
        Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_SENSITIVE
        at jdk.crypto.cryptoki/sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue(Native Method)
        at jdk.crypto.cryptoki/sun.security.pkcs11.P11Key$P11SecretKey.getEncodedInternal(P11Key.java:444)
        ... 9 more

              valeriep Valerie Peng
              jjiang John Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: