On Tue, 16 Feb 2021 07:50:05 GMT, Vyom Tewari <vtew...@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. This pull request has now been integrated. Changeset: 80182f92 Author: Vyom Tewari <vtew...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/80182f92 Stats: 5 lines in 1 file changed: 5 ins; 0 del; 0 mod 8260925: HttpsURLConnection does not work with other JSSE provider. Reviewed-by: xuelei ------------- PR: https://git.openjdk.java.net/jdk/pull/2583