Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Handshake alert: unrecognized_name error

I am using Charles 3.7 to debug SSL connections. I was able to view most of the HTTPS connections, however there is 1 or 2 sites that returned "SSLProtocol: handshake alert: unrecognized_name" when I try to debug it, and I was unable to load the website with Charles on. I am able to do so using Fiddler. Any ideas on how to resolve this issue? Thanks.

like image 771
kchiewtrc1 Avatar asked Mar 31 '13 00:03

kchiewtrc1


People also ask

What is Jsse enableSNIExtension?

It enables TLS connections to virtual servers, in which multiple servers for different network names are hosted at a single underlying network address. If you disable jsse.enableSNIExtension you won't be able to connect to pages under a virtual server.

What is javax net SSL SSLProtocolException?

javax.net.ssl.SSLProtocolException. Reports an error in the operation of the SSL protocol. Normally this indicates a flaw in one of the protocol implementations.


1 Answers

I came across this when using the latest beta Charles 3.10b9 on 10.10. We fixed by using a similar method to Shade's answer:

I opened info.plist in Xcode and did the following:

Under the JVMOptions (as oppose to VMOptions) key add the string:

-Djsse.enableSNIExtension=false
like image 133
XtremeMan Avatar answered Nov 08 '22 23:11

XtremeMan