This is an automated email from the ASF dual-hosted git repository.
dsoumis pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 918ce57388 Make the test more obvious
918ce57388 is described below
commit 918ce57388b34dfb0768570fb74bec0064b1d288
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]