错误102 nginx SSL

Lin*_*ing 5 ssl https nginx

我无法在我的域上获得SSL工作.我只是拒绝了102连接.

这是配置:

  server {
        listen 443 default_server ssl;
    ssl_certificate /etc/nginx/ssl/www.foreningsdriv.se.crt;
    ssl_certificate_key /etc/nginx/ssl/server.key;
     #if the URL with .php tacked on is a valid PHP file, rewrite the URL to .php
if (-f $document_root$uri.php) {
rewrite ^(.*)$ /$uri.php;
}

        root /var/www/foreningsdriv.se;
        index index.php index.html index.htm;
        server_name www.foreningsdriv.se;

        location / {
                try_files $uri $uri/ /index.html;
        }

        error_page 404 /404.html;

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        location ~ \.php$ {
                #fastcgi_pass 127.0.0.1:9000;
                # With php5-fpm:
                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;

        }

      }
Run Code Online (Sandbox Code Playgroud)

谁能看到有什么不对劲?

我试过重新发布证书,但它没有帮助.

VBa*_*art 23

您应该从私钥中删除密码.

openssl rsa -in original.key -out unencripted.key
Run Code Online (Sandbox Code Playgroud)