配置完https后,服务起不来
来源:4-19 基于Nginx的HTTPS服务_证书签名生成和Nginx的HTTPS服务场景演示1
慕虎3033596
2017-12-18
3回答
-
慕村1342571
2019-01-02
参考网上的方法,或者直接用老师后面的方法,就是不用输入密码那种,貌似是可以。
步骤1:openssl genrsa -des3 -out ca.key 2048
步骤2:openssl rsa -in ca.key -out ca.key
步骤3:openssl req -new -key zhaoy6.key -out ca.csr
步骤4:openssl x509 -req -days 3650 -in ca.csr -signkey ca.key -out ca.crt
步骤5:
nginx -tc /etc/nginx/nginx.conf
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
132019-01-03 -
慕村1342571
2019-01-02
nginx -tc /etc/nginx/nginx.conf
nginx: [emerg] SSL_CTX_use_PrivateKey_file("/etc/nginx/conf.d/ssl_key/zhaoy6.key") failed (SSL: error:0906B072:PEM routines:PEM_get_EVP_CIPHER_INFO:unsupported encryption error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib)
nginx: configuration file /etc/nginx/nginx.conf test failed
按照操作,报SSL签名错误
00 -
Jeson
2017-12-18
可以截个清楚图给我吗?这个图它小了,看不清楚。
032017-12-19
相似问题