Let’s Encrypt 인증서 발급
서버 환경 아마존 리눅스
다운로드 : curl -O https://dl.eff.org/certbot-auto
실행권한 : chmod +x certbot-auto
파일이동 : sudo mv certbot-auto /usr/local/bin/certbot-auto
설치
# 와일드카드 인증서 발급 방법은 다름
인증서 설치 : sudo /usr/local/bin/certbot-auto certonly --debug --standalone -d <도메인>
갱신
sudo /usr/local/bin/certbot-auto certonly --debug renew
설치 오류
Traceback (most recent call last):
File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 7, in <module>
from certbot.main import main
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/certbot/main.py", line 10, in <module>
import josepy as jose
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/__init__.py", line 44, in <module>
from josepy.interfaces import JSONDeSerializable
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/interfaces.py", line 8, in <module>
from josepy import errors, util
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/josepy/util.py", line 4, in <module>
import OpenSSL
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/opt/eff.org/certbot/venv/local/lib/python2.7/dist-packages/OpenSSL/crypto.py", line 12, in <module>
from cryptography import x509
ImportError: No module named cryptography
해당 오류 나오면 파이썬 2.xx 버전에서 3.xx 버전으로 업그레이드 하면됨
출처 : https://blog.smileboylab.com/%EB%A6%AC%EB%88%85%EC%8A%A4%EC%84%9C%EB%B2%84-%EC%95%84%EB%A7%88%EC%A1%B4-%EB%A6%AC%EB%88%85%EC%8A%A4-amazon-linux-%EC%97%90-lets-encrypt-%EC%9D%B8%EC%A6%9D%EC%84%9C-%EC%84%A4%EC%B9%98-%EB%B0%8F/