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

Disable SHA-1 in TLS/DTLS 1.2 handshake signatures

XMLWordPrintable

    • behavioral
    • low
    • Hide
      The risk should be low since TLS clients and servers supporting TLS 1.2-1.3 should support stronger signature algorithms, unless configured to only use weaker algorithms either accidentally or intentionally. Chrome has already made this change:
      https://chromestatus.com/feature/4832850040324096
      Show
      The risk should be low since TLS clients and servers supporting TLS 1.2-1.3 should support stronger signature algorithms, unless configured to only use weaker algorithms either accidentally or intentionally. Chrome has already made this change: https://chromestatus.com/feature/4832850040324096
    • System or security property
    • JDK

      Summary

      Disable SHA-1 in TLS/DTLS 1.2 handshake signatures

      Problem

      RFC 9155 deprecates the use of SHA-1 in TLS & DTLS 1.2 digital signatures. This does not affect SHA-1 in TLS server certificates.

      Solution

      Add "rsa_pkcs1_sha1 usage HandshakeSignature, ecdsa_sha1 usage HandshakeSignature, dsa_sha1 usage HandshakeSignature" to the dk.tls.disabledAlgorithms security property in java.security config file. This will prevent TLS client from sending rsa_pkcs1_sha1, ecdsa_sha1 and dsa_sha1 signature schemes in ClientHello's signature_algorithms extension. This will also prevent TLS server from sending the above-mentioned signature schemes in CertificateRequest message. If TLS client and server can't agree on a mutually supported handshake signature scheme then SSLHandshakeException with the error message "No supported signature algorithm" will be thrown.

      Specification

      The definition of the jdk.tls.disabledAlgorithms security property in the java.security file will be appended with "rsa_pkcs1_sha1 usage HandshakeSignature, ecdsa_sha1 usage HandshakeSignature, dsa_sha1 usage HandshakeSignature" string.

            abarashev Artur Barashev
            mullan Sean Mullan
            Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: