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

sun/security/pkcs11/Secmod/AddPrivateKey.java intermittent fail with no such algorithm: SHA1withDSA for provider SunPKCS11-NSSKeyStore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • security-libs

      sun/security/pkcs11/Secmod/AddPrivateKey.java fails intermittently with

      ----------System.err:(21/1546)----------
      WARNING: A restricted method in java.lang.System has been called
      WARNING: java.lang.System::load has been called by PKCS11Test in an unnamed module (file:/home/ol10/Desktop/regression/results/JTwork/classes/sun/security/pkcs11/Secmod/AddPrivateKey.d/)
      WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
      WARNING: Restricted methods will be blocked in a future release unless native access is enabled

      java.security.NoSuchAlgorithmException: no such algorithm: SHA1withDSA for provider SunPKCS11-NSSKeyStore
      at java.base/sun.security.jca.GetInstance.getService(GetInstance.java:101)
      at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:209)
      at java.base/java.security.Signature.getInstance(Signature.java:461)
      at AddPrivateKey.sign(AddPrivateKey.java:222)
      at AddPrivateKey.test(AddPrivateKey.java:121)
      at AddPrivateKey.main(AddPrivateKey.java:105)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1474)

      JavaTest Message: Test threw exception: java.security.NoSuchAlgorithmException: no such algorithm: SHA1withDSA for provider SunPKCS11-NSSKeyStore
      JavaTest Message: shutting down test


      Could not replicate, seems to be related to the server settings. Needs more extensive logging implementation

            myankelevich Mikhail Yankelevich
            myankelevich Mikhail Yankelevich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: