SSL handshake alert: unrecognized_name error since upgrade to Java 1.7.0

前端 未结 17 3061
栀梦
栀梦 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:18

    Instead of relying on the default virtual host mechanism in apache, you can define one last catchall virtualhost that uses an arbitrary ServerName and a wildcard ServerAlias, e.g.

    ServerName catchall.mydomain.com
    ServerAlias *.mydomain.com
    

    In that way you can use SNI and apache will not send back the SSL warning.

    Of course, this only works if you can describe all of your domains easily using a wildcard syntax.

提交回复
热议问题