Handshake alert: unrecognized_name error
Asked Answered
U

4

8

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.

Unpeople answered 31/3, 2013 at 0:39 Comment(0)
L
5

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
Lollis answered 2/3, 2015 at 12:47 Comment(0)
L
0

Looks like this has more to do with a security improvement from Java 1.7 and server configuration than it does Charles. Can you confirm which JRM Charles is using? help -> about java

Here's an article about the same error message but after upgrading to Java 1.7:

http://www.pressingquestion.com/2030237/Ssl-Handshake-Alert-Unrecognized_name-Error-Since-Upgrade-To-Java-170

Do you need to use Charles for those sites throwing the error? You can disable SSL Proxying per site if not.

Lectionary answered 3/9, 2013 at 17:54 Comment(0)
A
0

Add -Djsse.enableSNIExtension=false to the info.plist in the Contents folder for the Charles application. In:

<key>VMOptions</key>
<string>-Xmx512m -Djsse.enableSNIExtension=false</string>
Asthenic answered 11/2, 2015 at 0:39 Comment(0)
C
0

Try using command line from project's path:

mvn clean install -Djsse.enableSNIExtension=false
Copra answered 15/9, 2016 at 13:18 Comment(1)
This actually worked in my case (SSL certificate was present in keystore, yet I kept getting handshake failure with unrecognized_name). Could you perhaps elaborate why this works or point me to some information?Tuft

© 2022 - 2024 — McMap. All rights reserved.