Let's Encrypt certificate expiration notice for domain "www.xxxxx.com"
라는 e-mail 이 왔다
처음 무료 ssl받은 것이 3개월이 다 된 모양이다
이렇게 연장해 주면 된다 한다
내 server는 nginx reverse proxy 에 두개의 server가 연결 되어 있다.
1. server 중단
ubuntu@ip-172-31-7-173:~$ sudo service nginx stop
2. 인증서 다시 받기
ubuntu@ip-172-31-7-173:~$ sudo certbot certonly --standalone -d xxxxxxx.com -d abc.xxxxxxx.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
.........................................
Do you want to expand and replace this existing certificate with the new
certificate?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(E)xpand/(C)ancel: e
Renewing an existing certificate for xxxxxx.com and king.xxxxxx.com
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/king.xxxxx.com/fullchain.pem
Key is saved at: /etc/letsencrypt/live/king.xxxxxxx.com/privkey.pem
This certificate expires on 2024-05-30.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
.........................
3. Server 재시작
ubuntu@ip-172-31-7-173:~$ sudo service nginx start
정상 작동한다.
'우분투' 카테고리의 다른 글
sudo 권한 복구 (0) | 2024.02.17 |
---|