Project/NYAM

[Errno 13] Permission denied: '/var/log/letsencrypt/.certbot.lock'

sung.hyun.1204 2023. 1. 9. 18:13

 

추가적인 https 등록을 위하여 

cerbot 의 인증서를 갱신하는데 생긴 문제점입니다. 

 

 

- cerbot 도메인 추가를 위한 커맨드는 다음과 같습니다. 

sudo certbot --expand -d existing.com,example.com,newdomain.com

https://eff-certbot.readthedocs.io/en/stable/using.html#changing-a-certificate-s-domains

 

User Guide — Certbot 2.1.1 documentation

To view a list of the certificates Certbot knows about, run the certificates subcommand: Certificate Name shows the name of the certificate. Pass this name using the --cert-name flag to specify a particular certificate for the run, certonly, certificates,

eff-certbot.readthedocs.io

 

공식 문서를 보면 expand 커맨드를 사용해야 기존의 ssl 인증서를 갱신합니다. -> 기존 nginx 세팅에 쉽게 새로운 도메인을 추가 가능합니다.

 

 

[Errno 13] Permission denied:  가 뜨면 ,  '/var/log/letsencrypt/.certbot.lock' 와 같이 특정 파일에 접근 권한을 추가해줘야 합니다.

 

sudo chmod 755 /var/log/letsencrypt/

 

 

+ sudo 가 만능이 아닙니다.