Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Volley Getting SSLHandshakeException on Android

Our server is using a CA (certificate authority) which is not one of the CA's included on Android (Go Daddy). I am using Volley(https://android.googlesource.com/platform/frameworks/volley/) for my network requests, and therefore am unsure of how to deal with this issue. Since the example on the developer site (http://developer.android.com/training/articles/security-ssl.html), explains how to do it with like HttpUrlConnection.

like image 355
Leo Avatar asked Dec 05 '25 13:12

Leo


1 Answers

You have setup your server wrong. You also need to upload intermediate CA to your server. There has to be 2 certificates in your server.

When you execute the below line in you command line interface, you should see 2 certificates in "Certificate Chain" section.

openssl s_client -debug -connect api.metrekare.com:443
like image 183
tasomaniac Avatar answered Dec 08 '25 03:12

tasomaniac



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!