Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OkHttp certificate chain validation

Tags:

ssl

okhttp

We are using Okhttp client to call other REST services.

Does OkHttp validate the entire certificate chain till the Root Certificate, when making an https call?

like image 624
Chandan Avatar asked Jul 01 '26 08:07

Chandan


1 Answers

OkHttp relies on the platform’s SSLSocket to do that in the handshake. The certificate chain is checked and its root must be trusted.

like image 145
Jesse Wilson Avatar answered Jul 04 '26 10:07

Jesse Wilson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!