changeset 12064:d66de7e2f672 jdk8u121-b10

8168861: AnchorCertificates uses hardcoded password for cacerts keystore Reviewed-by: ascarpino
author robm
date Fri, 18 Nov 2016 18:11:44 +0000
parents cd0585378c46
children 866c326b4952
files src/share/classes/sun/security/util/AnchorCertificates.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/util/AnchorCertificates.java	Fri Nov 18 14:46:18 2016 +0300
+++ b/src/share/classes/sun/security/util/AnchorCertificates.java	Fri Nov 18 18:11:44 2016 +0000
@@ -56,7 +56,7 @@
                 try {
                     cacerts = KeyStore.getInstance("JKS");
                     try (FileInputStream fis = new FileInputStream(f)) {
-                        cacerts.load(fis, "changeit".toCharArray());
+                        cacerts.load(fis, null);
                         certs = new HashSet<>();
                         Enumeration<String> list = cacerts.aliases();
                         String alias;