sunmingtao / sample-code

3 stars 4 forks source link

Received fatal alert: handshake_failure through SSLHandshakeException #262

Closed sunmingtao closed 3 years ago

sunmingtao commented 3 years ago

Retrieve web contents using restTemplateWithProxy.getForObject("https://en.wikipedia.org/wiki/Abo_Call", String.class);

Get error

Received fatal alert: handshake_failure through SSLHandshakeException
sunmingtao commented 3 years ago

Looks like wikipedia upgraded their SSL certificate, which makes jdk 7 no longer compatible. The solution is using jdk 8+ https://stackoverflow.com/questions/6353849/received-fatal-alert-handshake-failure-through-sslhandshakeexception