rancher部署SSL证书(购买的SSL证书)无效,但可以认到证书

部署命令:sudo docker run -d --restart=unless-stopped   -p 80:80 -p 443:443   -v /root/var/log/auditlog:/var/log/auditlog   -e AUDIT_LEVEL=3   -v /etc/docker/psds.pem:/etc/rancher/ssl/cert.pem   -v /etc/docker/psds.key:/etc/rancher/ssl/key.pem   rancher/rancher:latest --no-cacerts

验证证书命令:

[psds@linux47 root]$ openssl s_client -connect 10.2.1.47:443 -servername 10.2.1.47

CONNECTED(00000003)

depth=2 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA

verify return:1

depth=1 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = GeoTrust RSA CA 2018

verify return:1

depth=0 C = CN, ST = \E7\A6\8F\E5\BB\BA, L = \E6\B3\89\E5\B7\9E, O = \E5\93\81\E5\B0\9A\E7\94\B5\E5\AD\90\E5\95\86\E5\8A\A1\E6\9C\89\E9\99\90\E5\85\AC\E5\8F\B8, OU = IT, CN = *.psds.com.cn

verify return:1

---

Certificate chain

 0 s:/C=CN/ST=\xE7\xA6\x8F\xE5\xBB\xBA/L=\xE6\xB3\x89\xE5\xB7\x9E/O=\xE5\x93\x81\xE5\xB0\x9A\xE7\x94\xB5\xE5\xAD\x90\xE5\x95\x86\xE5\x8A\xA1\xE6\x9C\x89\xE9\x99\x90\xE5\x85\xAC\xE5\x8F\xB8/OU=IT/CN=*.psds.com.cn

   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=GeoTrust RSA CA 2018

 1 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=GeoTrust RSA CA 2018

   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA

 2 s:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA

   i:/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert Global Root CA

---

Server certificate

网页显示情况,请问怎么解决?什么原因引起的?rancher不能用购买的SSL证书吗?

已邀请:

lm93129

赞同来自: pslincl

证书是对应域名的,你要用域名打开才行

要回复问题请先登录注册