Hi,
How can I test a site with a self signed certificate?
First I got a problem with:
java.lang.RuntimeException: javax.net.ssl.SSLPeerUnverifiedException: peer not
authenticated
I found and implemented XTrustProvider as in :
https://devcentral.f5.com/articles/ssl-trust-provider-for-java#.UkqtrN9lvyM
Then I got java.lang.RuntimeException: javax.net.ssl.SSLException: hostname in
certificate didn't match: <TEST_SERVER_IP> != <unknown>
I tried added the following code in my @BeforeClass method but the verify
method is never called:
HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() {
@Override
public boolean verify(String hostname, SSLSession session) {
return true;
}
});
What can I do?
/Gunnar
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users