-
추가적인 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 가 만능이 아닙니다.
'Project > NYAM' 카테고리의 다른 글
AWS s3 객체 url 접근 (0) 2023.02.03 Package.json 스크립트 작성 (0) 2023.01.19 앱 심사로 인한 서버 버전 관리 문제(feat , 무중단 배포) (1) 2023.01.09 NestJs Swagger Header 추가 (0) 2023.01.02 서버를 날렸습니다! (1) 2022.12.10