letsencrypt 질문입니다.

Extra Form
PHP PHP 8.2
CMS WordPress

기존 생성된 ssl에 서브도메인을 추가하려고 하는데요.

certbot certonly --webroot -w /path/to/webroot -d example.com -d subdomain.example.com

 

이렇게 하라고 나오는데

저 webroot 패스가

저의 경우

/etc/letsencrypt/live/example.com 인것 같은데요

 

그럼

certbot certonly --webroot -w /etc/letsencrypt/live/example.com -d example.com -d subdomain.example.com

이렇게 하는게 맞나요?

 

 

검색해보면

 

certbot --apache -d aaa.com -d www.aaa.com -d

 

이렇게 하라는 글도 있어서 헷갈립니당 ㅜ

 

  • profile

    예전에 어떤 명령으로 발급받으셨는지, 서버가 어떻게 구성되어 있는지에 따라 천차만별이기 때문에 정답이 없습니다.

     

    아파치 플러그인을 사용하셨다면 --apache가 맞고, 아파치를 사용하시더라도 플러그인에 의존하지 않고 webroot 경로를 직접 지정하셨다면 동일한 경로를 사용하셔야겠고요.

     

    즉, 맨 뒤에 -d subdomain.example.com이 추가되는 것 외에는 처음과 완벽하게 동일한 명령을 사용하시면 됩니다. 그러면 certbot이 어 그거 이미 있는 인증서랑 비슷하네? 그 인증서에 서브도메인 추가할래? 라고 물어봅니다. 기억이 나지 않으시면 history 명령으로 예전에 사용한 명령을 찾아보셔도 되고요.^^

  • profile profile

    자동으로 깔린거고 로그가 최근거만 나와서 확인이 어려운데 아무래도 명령어로 하면 될것같습니다.

     

    지금 설치되어있는 폴더가 /etc/letsencrypt/live/example.com 인 경우에는 certbot certonly --webroot -w /etc/letsencrypt/live/example.com -d example.com -d subdomain.example.com 이렇게 하면 되는거겠죵??

  • profile profile
    webroot는 거기가 아니고 홈페이지 index.php가 있는 경로입니다.
  • profile profile
    헉! 감사합니다.