okhttp icon indicating copy to clipboard operation
okhttp copied to clipboard

connectjavax.net.ssl.SSLHandshakeException: Chain validation failed

Open louishot opened this issue 1 year ago • 2 comments

Hi guys,

Today I see use okhttp to call the URL get this errors: connectjavax.net.ssl.SSLHandshakeException: Chain validation failed But there is no problem accessing it using a browser. After a long time of troubleshooting we found reason:because the SSL ocsp stapling response does not match the certificate.

okhttp should run the same as browser to ignore invalid ocsp stapling response instead SSLHandshakeException.

Thank you

louishot avatar Aug 05 '24 07:08 louishot

I see https://github.com/square/okhttp/issues/6930 But why does the browser work well?

louishot avatar Aug 05 '24 07:08 louishot

Can you include a stack trace. This won't be an okhttp issue. Okhttp uses the platform TLS stack.

yschimke avatar Aug 05 '24 13:08 yschimke

How to solve this problem?

BinarySatan avatar Aug 28 '25 08:08 BinarySatan

i think this problem comming becouse the server not allow to play on privete browser or download video somethink like that

kiraraajay avatar Sep 15 '25 09:09 kiraraajay