关于自建证书过期问题
  X7kI1chq9EYT 2023年11月02日 36 0
  1. 当前CA证书有效期是到 2029/11/04 [root@localhost ~]# cat /etc/openvpn/server/certs/ca.crt | openssl x509 -noout -enddate notAfter=Nov 4 09:23:29 2029 GMT
  2. 当前服务器证书有效期是到 2022/10/22 [root@localhost ~]# cat /etc/openvpn/server/certs/server.crt | openssl x509 -noout -enddate notAfter=Oct 22 09:24:05 2022 GMT

3.当前客户端证书有效期是到 2022/10/22

[root@client ~]:/etc/openvpn# cat /etc/openvpn/client.crt | openssl x509 -noout -enddate notAfter=Oct 22 09:52:47 2022 GMT

 4.所以2022/10/22之前需要更新延期 服务器证书server.crt和客户端证书client.crt

  1. ./easyrsa renew client nopass 和 ./easyrsa renew server nopass

[root@localhost 3]# ./easyrsa renew client nopass

Note: using Easy-RSA configuration from: ./vars

Using SSL: openssl OpenSSL 1.0.2k-fips 26 Jan 2017

Please confirm you wish to renew the certificate with the following subject:

subject= commonName = client

Type the word 'yes' to continue, or any other input to abort. Continue with renew: yes

Easy-RSA error:

Certificate expires in more than 30 days. Renewal not allowed.

  1. renew 证书需要在证书到期前的30天内,否则renew not allowed。
  2. EASYRSA_CERT_EXPIRE=36500 ./easyrsa renew server nopass EASYRSA_CERT_EXPIRE=36500 ./easyrsa renew vc nopass
【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  jnZtF7Co41Wg   2023年12月11日   31   0   0 nginx客户端服务端
  jnZtF7Co41Wg   2023年12月09日   28   0   0 客户端服务端数据
  Yoru5qB4TSKM   2023年12月10日   39   0   0 服务器重启IP
  jnZtF7Co41Wg   2023年12月10日   22   0   0 nginx客户端服务端NFS
  aYmIB3fiUdn9   2023年12月08日   50   0   0 客户端IPNATlvs