Skip to content

Commit 2780577

Browse files
committed
8196415: Disable SHA-1 Signed JARs
Reviewed-by: coffeys
1 parent 21f65f8 commit 2780577

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/java.base/share/conf/security/java.security

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,8 @@ sun.security.krb5.maxReferrals=5
634634
#
635635
#
636636
jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
637-
RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224
637+
RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224, \
638+
SHA1 jdkCA & usage SignedJAR & denyAfter 2019-01-01
638639

639640
#
640641
# Legacy algorithms for certification path (CertPath) processing and
@@ -698,7 +699,7 @@ jdk.security.legacyAlgorithms=SHA1, \
698699
# See "jdk.certpath.disabledAlgorithms" for syntax descriptions.
699700
#
700701
jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, \
701-
DSA keySize < 1024
702+
DSA keySize < 1024, SHA1 jdkCA & denyAfter 2019-01-01
702703

703704
#
704705
# Algorithm restrictions for Secure Socket Layer/Transport Layer Security

0 commit comments

Comments
 (0)