![[letsencrypt] Amazon Linux에 ACME v2 API를 지원하는 certbot client 설치](/tutorial-cover/post/[letsencrypt] Amazon Linux에 ACME v2 API를 지원하는 certbot client 설치.png)
[letsencrypt] Amazon Linux에 ACME v2 API를 지원하는 certbot client 설치
2022-10-03 last update
5 minutes reading letsencrypt AmazonLinuxAmazon Linux2라면 yum으로 넣을 수 있지만, Amazon Linux라면,
Amazon linux2의 경우
Amazon linux2의 경우
$ sudo yum install certbot
Amazon Linux의 경우
GitHub에서 소스를 clone 한 후 종속 패키지 설치
$ sudo git clone https://github.com/certbot/certbot.git /opt/certbot
$ sudo easy_install pip
$ sudo easy_install --upgrade pip
$ sudo pip install virtualenv==15.1.0
$ sudo pip install -U cryptography
$ pip -V
$ virtualenv --version
ACME v2 API의 endpoint로 다시 쓰기
ACME v1에서 이미 인증서를 받은 경우 /etc/letsencrypt/renewal/*.conf
를 다시 작성해야 합니다.
$ sudo find /etc/letsencrypt/renewal/ -type f -name '*.conf' -exec sed -i -e 's/acme-v01/acme-v02/g' {} \;
--debug 옵션을 사용하여 certbot-auto를 시작하여 종속 패키지를 설치합니다.
$ sudo /opt/certbot/certbot-auto renew --debug --force-renewal
SSL 인증서 발급
SSL 인증서를 발행하려면 certbot-auto 명령을 사용하십시오.
$ certbot certonly -t -d example.com \
-a webroot --webroot-path=/var/www/html \
--rsa-key-size 2048
이런 식으로
$ sudo yum install certbot
GitHub에서 소스를 clone 한 후 종속 패키지 설치
$ sudo git clone https://github.com/certbot/certbot.git /opt/certbot
$ sudo easy_install pip
$ sudo easy_install --upgrade pip
$ sudo pip install virtualenv==15.1.0
$ sudo pip install -U cryptography
$ pip -V
$ virtualenv --version
ACME v2 API의 endpoint로 다시 쓰기
ACME v1에서 이미 인증서를 받은 경우
/etc/letsencrypt/renewal/*.conf
를 다시 작성해야 합니다.$ sudo find /etc/letsencrypt/renewal/ -type f -name '*.conf' -exec sed -i -e 's/acme-v01/acme-v02/g' {} \;
--debug 옵션을 사용하여 certbot-auto를 시작하여 종속 패키지를 설치합니다.
$ sudo /opt/certbot/certbot-auto renew --debug --force-renewal
SSL 인증서 발급
SSL 인증서를 발행하려면 certbot-auto 명령을 사용하십시오.
$ certbot certonly -t -d example.com \
-a webroot --webroot-path=/var/www/html \
--rsa-key-size 2048
이런 식으로