Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app SSL handshake failed

Tags:

ios

https

ssl

I am making an app to login to an aspx website over HTTPS by passing login credentials in a post method. When checking the response using Charles Proxy I can see a SSL Handshake failed error from seal.verisign.com, I am then taken back to the login page. I am not sure what I need to do to solve this issue.

I am testing this in the iPhone simulator.

I do not have access to the server implementation.

Any ideas?

Thank you!

like image 371
JLau_cy Avatar asked Apr 02 '13 15:04

JLau_cy


People also ask

What causes SSL handshake failure?

The SSL Handshake Error occurs if the read access has not been granted to the OS, thus preventing the web server from completing authentication. It indicates that the browser's connection to the web server isn't secure.

What happens if SSL handshake fails?

If the TLS/SSL handshake succeeds, then the TLS/SSL client and server transfer data to each other securely. Otherwise, if a TLS/SSL handshake failure occurs the connection is terminated and the client receives a 503 Service Unavailable error. The protocol used by the client is not supported by the server.

How do I fix error during SSL handshake with remote server?

Checking if there is an additional ssl. conf file which has replaced or added while copying the *. conf file during the transition of 2.2 to 2.4, This can cause conflicts as both the files will have the same directives and none of them will respond, Removing one of them and restarting httpd will fix the issue.


1 Answers

On iOS >= 10.3, after installing the Charles Proxy certificate (as per @ashish-verma's excellent answer), you also need to enable it through Settings -> General -> About -> Certificate Trust Settings:

Enable SSL root certificate on iOS 10.3 and up

Full setup here: http://www.devsbedevin.net/debugging-ios-ssl-traffic/

like image 77
Vaiden Avatar answered Sep 22 '22 16:09

Vaiden