RFR: 8278312: Update SimpleSSLContext keystore to use SANs for localhost IP addresses

Michael McMahon michaelm at openjdk.java.net
Thu Dec 9 17:00:45 UTC 2021


On Tue, 7 Dec 2021 15:03:31 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> test/jdk/com/sun/net/httpserver/SANTest.java line 77:
>> 
>>> 75:             int port1 = s1.getAddress().getPort();
>>> 76:             int port2 = s2.getAddress().getPort();
>>> 77:             test ("127.0.0.1", root+"/test1", port2, "smallfile.txt", 23);
>> 
>> Maybe this test should use `IPSupport::hasIPv4` and `IPSupport::hasIPv6` to figure out which addresses can be tested on a particular machine.
>
> Also it might be good to test with HTTP/2 over SSL - maybe the test class could implement `HttpServerAdapters` to that purpose.

Okay, will do.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6727


More information about the security-dev mailing list