nginx SSL 失败错误:0909006C

nginx SSL 失败错误:0909006C

我正在配置来自 GoDaddy 的 SSL 证书,并已按照页面中的所有说明进行操作:https://br.godaddy.com/help/nginx-on-centos-7-install-a-certificate-27192?lc=en-US

我正在运行 CentOS8

我仍然收到以下错误:

SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: ANY PRIVATE KEY

我将 nginx 服务器配置为

server {
    listen 443 ssl;

    server_name 185.224.81.18;
    ssl_certificate     /etc/nginx/ssl/vegazbet.crt;
    ssl_certificate_key /etc/nginx/ssl/generated-private-key.txt;

    include ssl.conf;

    include       proxy_params;

    location / {
        proxy_pass http://localhost:5010;
    }

    location /static {
        root /home/useradmin/vegazbet/web/app;
    }

    location /socket.io {
        proxy_http_version 1.1;
        proxy_buffering off;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_pass http://localhost:5010/socket.io;
    }
}

SSL.CONF
ssl_protocols               TLSv1 TLSv1.1 TLSv1.2;
ssl_ecdh_curve              secp384r1;
ssl_ciphers                 "ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384 OLD_TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 OLD_TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256";
ssl_prefer_server_ciphers   on;
ssl_session_timeout         10m;
ssl_session_cache           shared:SSL:10m;
ssl_session_tickets         off;
ssl_stapling                on;
ssl_stapling_verify         on;

PROXY_PARAMS
proxy_set_header    X-Real-IP           $remote_addr;
proxy_set_header    X-Forwarded-For     $proxy_add_x_forwarded_for;
proxy_set_header    X-Forwarded-Proto   $scheme;
proxy_set_header    Host                $host;
proxy_set_header    X-Forwarded-Host    $host;
proxy_set_header    X-Forwarded-Port    $server_port;

有人知道这个错误意味着什么吗?

我浏览过这里的很多论坛帖子,发现没有人遇到完全相同的错误......

相关内容