美文网首页程序员
使用certbot续期ssl证书renew时遇到问题

使用certbot续期ssl证书renew时遇到问题

作者: 麦子时光_新浪 | 来源:发表于2019-01-30 16:25 被阅读6次

证书过期

Attempting to renew cert (eduweb.2b3.cn) from /etc/letsencrypt/renewal/eduweb.2b3.cn.conf produced an unexpected error: Failed authorization procedure. eduweb.2b3.cn (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://eduweb.2b3.cn/.well-known/acme-challenge/66jQl5nB6g7pdUgeWTHV2PrRK0vKCisBJEC0rb38BIw: "<html>\r\n<head><title>404 Not Found</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>404 Not Found</h1></center>\r\n<hr><center>". Skipping.

解决方法

   要先停掉nginx  

 service nginx stop

  /root/letsencrypt/certbot-auto --force-renewal

 /root/letsencrypt/certbot-auto cnrtonly

  /root/letsencrypt/certbot renew  --dry-run

  /root/letsencrypt/certbot-auto nginx start

 nginx -s reload

相关文章

网友评论

    本文标题:使用certbot续期ssl证书renew时遇到问题

    本文链接:https://www.haomeiwen.com/subject/ljscsqtx.html