This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new a28c360536 Infer KeyStore type when configuring a KeyStore directly
a28c360536 is described below
commit a28c36053622aabd9375d5a65ca88ba19fb522f1
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Oct 23 17:41:34 2023 +0100
Infer KeyStore type when configuring a KeyStore directly
---
java/org/apache/tomcat/util/net/SSLHostConfigCertificate.java | 3 +++
webapps/docs/changelog.xml | 10 ++++++++++
2 files changed, 13 insertions(+)
diff --git a/java/org/apache/tomcat/util/net/SSLHostConfigCertificate.java
b/java/org/apache/tomcat/util/net/SSLHostConfigCertificate.java
index 0c0ebb7274..68a6d2d378 100644
--- a/java/org/apache/tomcat/util/net/SSLHostConfigCertificate.java
+++ b/java/org/apache/tomcat/util/net/SSLHostConfigCertificate.java
@@ -224,6 +224,9 @@ public class SSLHostConfigCertificate implements
Serializable {
public void setCertificateKeystore(KeyStore certificateKeystore) {
this.certificateKeystore = certificateKeystore;
+ if (certificateKeystore != null) {
+ setCertificateKeystoreType(certificateKeystore.getType());
+ }
}
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 2a908b046a..3f46719f49 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -126,6 +126,16 @@
</update>
</changelog>
</subsection>
+ <subsection name="Coyote">
+ <changelog>
+ <add>
+ When calling
+ <code>SSLHostConfigCertificate.setCertificateKeystore(ks)</code>,
+ automatically call
+ <code>setCertificateKeystoreType(ks.getType())</code>. (markt)
+ </add>
+ </changelog>
+ </subsection>
<subsection name="Other">
<changelog>
<add>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]