카페24 가상서버에 2개의 사이트를 운영중입니다.
이 중 하나의 사이트 도메인이 변경되어 이에 대한 설정파일 변경과 변경된 도메인 ssl 설치를 다시 하려고 합니다.
nginx default.conf 설정파일을 보니 2개의 사이트를 구분하기 위해 아래와 같이 임의의 폴더를 만든 후 ssl를 설치 한것으로 생각이 되어 집니다.
ssl_certificate /etc/letsencrypt/live/도메인.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/도메인.com/privkey.pem; # managed by Certbot
-----
ssl 설치 도움말을 보면 ( https://blog.sweetchip.kr/406 )
apt install letsencrypt 하면 설치가 끝난 것이고
sudo letsencrypt certonly -a standalone -d domain.com
를 입력하면 인증서가 만들어진다라고 되어 있는데요.
아래 경로에 변경될 도메인.com의 폴더를 미리 만들고
ssl_certificate /etc/letsencrypt/live/변경될 도메인.com
해당 경로로 이동 후
apt install letsencrypt
sudo letsencrypt certonly -a standalone -d domain.com
이렇게 두번의 명령어를 실행하는게 맞는건지 문의드립니다.
저희는 모든 도메인을 대상으로 신청해서 1개의 인증서를 발급받아 적용합니다. 물론 제가 직접 안해서...