Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1490

Java 9: Test fails on Oracle 9.0.4 and later due to SHA-1 usage

XMLWordPrintable

      The error is:

      [ERROR] Tests run: 30, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.197 s <<< FAILURE! - in org.wildfly.security.asn1.DEREncoderTest
      [ERROR] testEncodeDSAKey(org.wildfly.security.asn1.DEREncoderTest)  Time elapsed: 0.053 s  <<< ERROR!
      java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size
      	at java.base/java.security.Signature$Delegate.init(Signature.java:1178)
      	at java.base/java.security.Signature$Delegate.chooseProvider(Signature.java:1138)
      	at java.base/java.security.Signature$Delegate.engineInitSign(Signature.java:1202)
      	at java.base/java.security.Signature.initSign(Signature.java:545)
      	at org.wildfly.security.asn1.DEREncoderTest.testEncodeDSAKey(DEREncoderTest.java:426)
      

              dlloyd@redhat.com David Lloyd
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: