Renew manually Let's Encrypt SSL certificate

若如初见. 提交于 2019-12-11 01:29:02

问题


My Let's Encrypt SSL certificate will expire in 0 day (not yet)...

I use it for a website in nginx & a ubuntu 14.04 server in DigitalOcean.

I have found a folder /etc/letsencrypt/, and in the server block:

ssl_certificate /etc/letsencrypt/live/mysite.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/mysite.com/privkey.pem;

However, I cannot find for example letsencrypt-auto

Does anyone know how to manually renew it?


回答1:


Actually, I don't remember how I generated the SSL certificate for the first time. To renew it, by following this thread, I first installed cerbot:

sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot

Then, I need to make sure the path and setting are correct as described in the thread. Then I did

sudo certbot renew

That's it.



来源:https://stackoverflow.com/questions/45001078/renew-manually-lets-encrypt-ssl-certificate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!