Skip to content

Commit d571cf0

Browse files
committed
Don't mix JSSE and OpenSSL configuration styles - avoids warning in logs
There is no need to configure a key store password for a PEM file.
1 parent 2e78a4e commit d571cf0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/org/apache/tomcat/util/net/TestSSLHostConfigCompat.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ private void configureHostRSA() {
254254
SSLHostConfigCertificate sslHostConfigCertificateRsa = new SSLHostConfigCertificate(sslHostConfig, Type.RSA);
255255
sslHostConfigCertificateRsa.setCertificateFile(getPath(TesterSupport.LOCALHOST_RSA_CERT_PEM));
256256
sslHostConfigCertificateRsa.setCertificateKeyFile(getPath(TesterSupport.LOCALHOST_RSA_KEY_PEM));
257-
sslHostConfigCertificateRsa.setCertificateKeystorePassword(TesterSupport.JKS_PASS);
258257
sslHostConfig.addCertificate(sslHostConfigCertificateRsa);
259258
break;
260259
}
@@ -276,7 +275,6 @@ private void configureHostEC() {
276275
SSLHostConfigCertificate sslHostConfigCertificateEc = new SSLHostConfigCertificate(sslHostConfig, Type.EC);
277276
sslHostConfigCertificateEc.setCertificateFile(getPath(TesterSupport.LOCALHOST_EC_CERT_PEM));
278277
sslHostConfigCertificateEc.setCertificateKeyFile(getPath(TesterSupport.LOCALHOST_EC_KEY_PEM));
279-
sslHostConfigCertificateEc.setCertificateKeyPassword(TesterSupport.JKS_PASS);
280278
sslHostConfig.addCertificate(sslHostConfigCertificateEc);
281279
break;
282280
}

0 commit comments

Comments
 (0)