SSL handshake alert unrecognized name

Issue

When I try to connect to a SSL server I see this error

 javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name

Environment

  • CloudBees Jenkins Enterprise
  • JDK >1.7

Resolution

With JDK >1.7 you have to add -Djsse.enableSNIExtension=false to Jenkins options or configure properly your server, the reason is a wrong configuration of virtual hosts on the server side. The server sends a warning, browsers are ignoring it, but Java terminates. Oracle means it’s “not a defect”: http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7127374

How to add Java arguments to Jenkins

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.