Savage1956 / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Add SNI support #393

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Given test should pass

        RestAssured.baseURI = "https://sni.velox.ch"; // sample server with SNI configured
        given().expect().statusCode(200).with().get("/");

but it throws an exception instead:

javax.net.ssl.SSLException: hostname in certificate didn't match: 
<sni.velox.ch> != <alice.sni.velox.ch> OR <alice.sni.velox.ch> OR 
<carol.sni.velox.ch>

Test with relaxed HTTP validation passes:

given().relaxedHTTPSValidation().expect().statusCode(200).with().get("/");

I run the test on Java 1.7 using TestNG and Maven.

Original issue reported on code.google.com by marcin.j...@supermemo.com on 19 Mar 2015 at 1:04

GoogleCodeExporter commented 8 years ago

Original comment by johan.ha...@gmail.com on 21 Mar 2015 at 5:39