ssl - 错误 102 nginx SSL

标签 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;

        }

      }

谁能看出有什么不对?

我已经尝试重新颁发证书,但没有帮助。

最佳答案

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

openssl rsa -in original.key -out unencripted.key

关于ssl - 错误 102 nginx SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18101217/

相关文章:

ios - 具有自签名 SSL 和 HTTP 基本身份验证的 AFHTTPRequestOperation(-1012 错误)

spring - 如何保护个人金融网络应用程序?

nginx - 无法以非root用户身份运行nginx容器

git - 无法通过 'docker attach'到达Bash Shell

bash - nginx rtmp-module 无法执行 ffmpeg

ssl - 奇怪的 SSL 证书问题

spring-boot - jhipster ssl ubuntu apache2 设置

ssl - 如何从 https ://www. dvdempire.com/all-movie.html 下载 DVD 封面

c++ - 如何检查 SSL 套接字是否关闭(异步)

html - 强制 Tumblr 使用 http 链接而不是 https