Skip to content

Commit 5de4207

Browse files
committed
Better fix for mix of JSSE and OpenSSL config styles
Use the OpenSSL setter for key password.
1 parent d571cf0 commit 5de4207

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ 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.setCertificateKeyPassword(TesterSupport.JKS_PASS);
257258
sslHostConfig.addCertificate(sslHostConfigCertificateRsa);
258259
break;
259260
}

0 commit comments

Comments
 (0)