- 积分
- 10
- 威望
-
- 金钱
-
- 注册时间
- 2018-1-5
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
本帖最后由 neal 于 2022-9-15 14:22 编辑
安装好 Let'sEncrypt 免费通配符/泛域名SSL证书后,重启nginx报错 使用的是lnmp1.9
nginx: [emerg] cannot load certificate "/usr/local/nginx/conf/ssl/fullchain.cer": PEM_read_bio_X509() failed
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
nginx版本信息如下:
[root@VM-0-13-centos ~]# nginx -V
nginx version: nginx/1.22.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
built with OpenSSL 1.1.1o 3 May 2022
TLS SNI support enabled
configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-http_sub_module --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module --with-openssl=/root/lnmp1.9/src/openssl-1.1.1o --with-openssl-opt='enable-weak-ssl-ciphers' --with-ld-opt='-ljemalloc' --add-module=/root/nginx-let-module
使用openssl 查看是正常的
openssl x509 -in /usr/local/nginx/conf/ssl/fullchain.cer -text -noout
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
04:7c:44:38:b0:63:5a:e0:37:96:8e:36:81:51:20:cd:9f:9d
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=US, O=Let's Encrypt, CN=R3
Validity
Not Before: Sep 15 01:45:47 2022 GMT
Not After : Dec 14 01:45:46 2022 GMT
Subject: CN=mingshishaobing.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Modulus:
|
|