This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push: new cd4903db91 Infer KeyStore type when configuring a KeyStore directly cd4903db91 is described below commit cd4903db91714822b38d5017169599d4e15544aa Author: Mark Thomas <ma...@apache.org> 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 0e028ed263..5100bd9a16 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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org