SSL handshake alert: unrecognized_name error since upgrade to Java 1.7.0

前端 未结 17 3067
栀梦
栀梦 2020-11-22 06:35

I upgraded from Java 1.6 to Java 1.7 today. Since then an error occur when I try to establish a connection to my webserver over SSL:

javax.net.ssl.SSLProtoco         


        
17条回答
  •  自闭症患者
    2020-11-22 07:10

    Ran into this issue with spring boot and jvm 1.7 and 1.8. On AWS, we did not have the option to change the ServerName and ServerAlias to match (they are different) so we did the following:

    In build.gradle we added the following:

    System.setProperty("jsse.enableSNIExtension", "false")
    bootRun.systemProperties = System.properties
    

    That allowed us to bypass the issue with the "Unrecognized Name".

提交回复
热议问题