程序员

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

2019-01-30  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读