OS : Centos 7.4
Let's Encrypt 모듈이 2018-3-13 부로 와일드카드 인증서가 발급 가능하게 되었습니다.
certbot을 다운로드 받습니다.
git clone https://github.com/certbot/certbot.git
Apache를 종료 합니다.
/certbot-auto certonly --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns -d example.com -d *.example.com
여기서 example.com 은 발급받은 도메인을 설정한다.
위 명령어를 실행하면 필요한 패키지는 자동 설치 해준다.
=========================================================================
.
.
.
Creating virtual environment...
Installing Python packages...
Installation succeeded.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): superip@gmail.com
-------------------------------------------------------------------------------
Please read the Terms of Service at
agree in order to register with the ACME server at
-------------------------------------------------------------------------------
(A)gree/(C)ancel: A
-------------------------------------------------------------------------------
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about EFF and
our work to encrypt the web, protect its users and defend digital rights.
-------------------------------------------------------------------------------
(Y)es/(N)o: Y
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for superip.net
dns-01 challenge for superip.net
-------------------------------------------------------------------------------
NOTE: The IP of this machine will be publicly logged as having requested this
certificate. If you're running certbot in manual mode on a machine that is not
your server, please ensure you're okay with that.
Are you OK with your IP being logged?
-------------------------------------------------------------------------------
(Y)es/(N)o: Y
-------------------------------------------------------------------------------
Please deploy a DNS TXT record under the name
_acme-challenge.superip.net with the following value:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Before continuing, verify the record is deployed.
-------------------------------------------------------------------------------
여기서 DNS 를 추가 한다. TXT 레코드를 추가한다.
_acme-challenge.superip.net value XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Press Enter to Continue
-------------------------------------------------------------------------------
Please deploy a DNS TXT record under the name
_acme-challenge.superip.net with the following value:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Before continuing, verify the record is deployed.
-------------------------------------------------------------------------------
여기서 DNS 를 추가 한다. TXT 레코드를 추가한다.
_acme-challenge.superip.net value XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Press Enter to Continue
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/superip.net/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/superip.net/privkey.pem
Your cert will expire on 2018-07-25. To obtain a new or tweaked
version of this certificate in the future, simply run certbot-auto
again. To non-interactively renew *all* of your certificates, run
"certbot-auto renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
정상적으로 했다면, 다음과 같은 메세지를 보게 됩니다.
인증서 파일들은 /etc/letsencrypt/live/example.com 부분에 저장됩니다.
(정확히는 링크 파일로, 원본은 /etc/letsencrypt/archive/example.com 부분에 저장됩니다.)
인증서 파일들은 /etc/letsencrypt/live/example.com 부분에 저장됩니다.
(정확히는 링크 파일로, 원본은 /etc/letsencrypt/archive/example.com 부분에 저장됩니다.)
추후 업데이트는 만료 기한이 1달 이하로 남았을때 부터 가능
./certbot-auto certonly --renew-by-default --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns -d example.com -d *.example.com
?
이상입니다.

댓글목록
슈퍼아이피님의 댓글
== 갱신하는 방법 ==
./certbot-auto certonly --renew-by-default --server https://acme-v02.api.letsencrypt.org/directory --manual --preferred-challenges dns -d *.superip.net -d superip.net
-d 옵션은 도메인 옵션이다.
위 명령어 실행 후 요청에 따라 DNS정보를 변경하면 된다.