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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to