SSL handshake alert: unrecognized_name error since upgrade to Java 1.7.0

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

    Just to add a solution here. This might help for LAMP users

    Options +FollowSymLinks -SymLinksIfOwnerMatch
    

    The above mentioned line in the virtual host configuration was the culprit.

    Virtual Host Configuration when error

    
        DocumentRoot /var/www/html/load/web
        ServerName dev.load.com
        
            Options +FollowSymLinks -SymLinksIfOwnerMatch
            AllowOverride All
            Require all granted
            Order Allow,Deny
            Allow from All
        
         RewriteEngine on
         RewriteCond %{SERVER_PORT} !^443$
         RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L]
    
    

    Working Configuration

    
        DocumentRoot /var/www/html/load/web
    
       ServerName dev.load.com
       
    
            AllowOverride All
    
            Options All
    
            Order Allow,Deny
    
            Allow from All
    
        
    
        # To allow authorization header
        RewriteEngine On
        RewriteCond %{HTTP:Authorization} ^(.*)
        RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
    
       # RewriteCond %{SERVER_PORT} !^443$
       # RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L]
    
    
    
    

提交回复
热议问题