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

The values of jdk.tls.namedGroups should not be case-sensitive

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b21
    • Verification:
      Verified

      Backports

        Description

        A simple TLS connection case with system property -Djdk.tls.namedGroups=Secp256r1 failed on the below error,

        java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SupportedGroupsExtension$SupportedGroups
        at java.base/sun.security.ssl.HandshakeContext.isActivatable(HandshakeContext.java:528)
        at java.base/sun.security.ssl.HandshakeContext.getActiveProtocols(HandshakeContext.java:290)
        at java.base/sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:167)
        at java.base/sun.security.ssl.ServerHandshakeContext.<init>(ServerHandshakeContext.java:62)
        at java.base/sun.security.ssl.TransportContext.kickstart(TransportContext.java:221)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:430)
        at java.base/sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:880)
        at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:971)
        at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:931)
        at SSLSocketTemplate.runServerApplication(SSLSocketTemplate.java:99)
        at SSLSocketTemplate.doServerSide(SSLSocketTemplate.java:288)
        at SSLSocketTemplate.startServer(SSLSocketTemplate.java:592)
        at SSLSocketTemplate.bootup(SSLSocketTemplate.java:506)
        at SSLSocketTemplate.run(SSLSocketTemplate.java:88)
        at SSLSocketTemplate.main(SSLSocketTemplate.java:81)
        Exception in thread "Thread-0" java.lang.ExceptionInInitializerError
        at java.base/sun.security.ssl.HandshakeContext.isActivatable(HandshakeContext.java:528)
        at java.base/sun.security.ssl.HandshakeContext.getActiveProtocols(HandshakeContext.java:290)
        at java.base/sun.security.ssl.HandshakeContext.<init>(HandshakeContext.java:167)
        at java.base/sun.security.ssl.ClientHandshakeContext.<init>(ClientHandshakeContext.java:98)
        at java.base/sun.security.ssl.TransportContext.kickstart(TransportContext.java:220)
        at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:430)
        at java.base/sun.security.ssl.SSLSocketImpl.ensureNegotiated(SSLSocketImpl.java:880)
        at java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1250)
        at java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1222)
        at SSLSocketTemplate.runClientApplication(SSLSocketTemplate.java:117)
        at SSLSocketTemplate.doClientSide(SSLSocketTemplate.java:367)
        at SSLSocketTemplate$2.run(SSLSocketTemplate.java:606)
        Caused by: java.lang.IllegalArgumentException: System property jdk.tls.namedGroups(Secp256r1) contains no supported named groups
        at java.base/sun.security.ssl.SupportedGroupsExtension$SupportedGroups.<clinit>(SupportedGroupsExtension.java:200)

        If the value is secp256r1, this case passed.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ssahoo Sibabrata Sahoo
                  Reporter:
                  jjiang John Jiang
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: