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

Add RC2/RC4 to jdk.security.legacyAlgorithms

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 19
    • security-libs
    • None
    • behavioral
    • minimal
    • System or security property
    • JDK

      Summary

      Add the RC2 and ARCFOUR (RC4) algorithms to "jdk.security.legacyAlgorithms" security property in the java.security property file. keytool will emit warnings when one of these weak algorithms is used.

      Problem

      RC2 and ARCFOUR are weak algorithms. keytool does not emit warnings when an RC2 or ARCFOUR algorithm is used for its commands associated with secret key entries in the keystore.

      Solution

      Update "jdk.security.legacyAlgorithms" security property to include RC2 and ARCFOUR. This enables keytool to generate warnings when it uses a weak RC2 or ARCFOUR secret key based algorithm.

      Specification

      Make the following changes to java.security property file:

      --- a/src/java.base/share/conf/security/java.security
      +++ b/src/java.base/share/conf/security/java.security
      @@ -654,7 +654,7 @@ jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
      
       jdk.security.legacyAlgorithms=SHA1, \
           RSA keySize < 2048, DSA keySize < 2048, \
      -    DES, DESede, MD5
      +    DES, DESede, MD5, RC2, ARCFOUR
      
       #
       # Algorithm restrictions for signed JAR files

            hchao Haimay Chao
            hchao Haimay Chao
            Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: