在Nginx 的server块中,更新ssl_certificate和ssl_certificate_key指令: 1 2 ssl_certificate/path/to/your_certificate.crt; ssl_certificate_key/path/to/your_private_key.key; 如果你使用了.pem格式的私钥文件,则将ssl_certificate_key指令更新为: 1 ssl_certificate_key/path/to/your_private_key.pem; 二、S...
server_name it-blog-cn.com;ssl_certificate /usr/local/nginx/conf/cert/it-blog-cn.com.pem; ssl_certificate_key /usr/local/nginx/conf/cert/it-blog-cn.com.key;ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m;ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on;location /...
sub.domain.com.ssl 文件配置内容: ssl on; ssl_certificate /etc/letsencrypt/live/sub.domain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/sub.domain.com/privkey.pem; ssl_prefer_server_ciphers on; ssl_dhparam /etc/nginx/sites-enabled/dhparam.pem; //这里的 dhparam.pem 去目录下...
ssl_trusted_certificate /usr/local/nginx-1.20.1/conf/cert/root.crt; ssl_verify_client on; ssl_verify_depth 2; ssl_session_timeout 5m; client_max_body_size 2048m; location / { proxy_ssl_certificate /usr/local/nginx-1.20.1/conf/cert/hmportal.crt; proxy_ssl_certificate_key /usr/local/n...
listen 443; server_name localhost; ssi on; ssi_silent_errors on; ssi_types text/shtml; ssl on; ssl_certificate /usr/local/nginx/ca/server/server.crt; ssl_certificate_key /usr/local/nginx/ca/server/server.key; ssl_client_certificate /usr/local/nginx/ca/private/ca.crt; ssl_session_time...
IUM:+LOW:+SSLv2:+EXP; # ssl_prefer_server_ciphers on; # location / { # root html; # index index.html index.htm; # } #} 将其修改为 server { listen 443; server_name localhost; ssl on; ssl_certificate server.cer; ssl_certificate_key server.key; ...
ssl_certificate_key ssl/cp.key; //key文件存放路径 ssl_session_timeout 5m; ssl_protocols SSLv2 SSLv3 TLSv1; ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; ssl_prefer_server_ciphers on; server_name localhost; ...
ssl_certificate_key sslkey/wosign.com.key; (证书私钥) ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL; ssl_prefer_server_ciphers on; location / { ...
server_name bjubi.com; // 你的域名 ssl on; root /var/www/bjubi.com; // 前台文件存放文件夹,可改成别的 index index.html index.htm;// 上面配置的文件夹里面的index.html ssl_certificate cert/214292799730473.pem;// 改成你的证书的名字 ssl_certificate_key cert/214292799730473.key;// 你的证书...
首先,我们需要检查 Nginx 的 SSL/TLS 配置是否正确。打开 Nginx 的配置文件,在相应的服务器块中查找 SSL 相关的配置项。确保以下配置项正确设置: server { listen 443 ssl; server_name example.com; ssl_certificate /path/to/certificate.crt; ssl_certificate_key /path/to/private.key; ...