You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ds...@apache.org on 2026/03/31 14:43:33 UTC

(tomcat) branch 10.1.x updated: Make the test more obvious

This is an automated email from the ASF dual-hosted git repository.

dsoumis 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 2f7a7058ef Make the test more obvious
2f7a7058ef is described below

commit 2f7a7058ef0e06088aee5f8bff1616a6c07caaa6
Author: Dimitris Soumis <ji...@gmail.com>
AuthorDate: Tue Mar 31 17:42:04 2026 +0300

    Make the test more obvious
---
 test/org/apache/tomcat/util/net/TestSSLHostConfigProtocol.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/org/apache/tomcat/util/net/TestSSLHostConfigProtocol.java b/test/org/apache/tomcat/util/net/TestSSLHostConfigProtocol.java
index b90d5a59d0..05b14dfef3 100644
--- a/test/org/apache/tomcat/util/net/TestSSLHostConfigProtocol.java
+++ b/test/org/apache/tomcat/util/net/TestSSLHostConfigProtocol.java
@@ -113,7 +113,11 @@ public class TestSSLHostConfigProtocol extends TomcatBaseTest {
         Tomcat tomcat = getTomcatInstance();
         tomcat.start();
 
-        TesterSupport.configureClientSsl(true);
+        SSLContext sc = SSLContext.getInstance(Constants.SSL_PROTO_TLSv1_2);
+        sc.init(null, new TrustManager[] { new TesterSupport.TrustAllCerts() }, null);
+        TesterSupport.ClientSSLSocketFactory clientSSLSocketFactory = new TesterSupport.ClientSSLSocketFactory(sc.getSocketFactory());
+        clientSSLSocketFactory.setProtocols(new String[] { Constants.SSL_PROTO_TLSv1_2 });
+        HttpsURLConnection.setDefaultSSLSocketFactory(clientSSLSocketFactory);
 
         getUrl("https://localhost:" + getPort() + "/");
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org