RFR: JDK-8260925: HttpsURLConnection does not work with other JSSE provider. [v6]
Xue-Lei Andrew Fan
xuelei at openjdk.java.net
Thu Mar 4 05:18:39 UTC 2021
On Thu, 4 Mar 2021 04:02:03 GMT, Vyom Tewari <vtewari at openjdk.org> wrote:
>> HttpsURLConnection, works with SunJSSE provider but does not work with other JSSE provider. In case of SunJSSE , HttpsURLConnection set the host name as follows
>>
>> s = (SSLSocket)serverSocket;
>> if (s instanceof SSLSocketImpl) {
>> ((SSLSocketImpl)s).setHost(host);
>> }
>>
>> But in case of other providers(BouncyCastleProvider ) host will not get set and "java.security.cert.CertificateException: No subject alternative name found matching IP address" exception will be thrown.
>
> Vyom Tewari has updated the pull request incrementally with one additional commit since the last revision:
>
> added a comment that host has bees set previously
Thank you. I have no more comment.
-------------
Marked as reviewed by xuelei (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/2583
More information about the net-dev
mailing list