centos7에서 letsencrypt 설치하기
- 일반적으로 certbot 클라이언트를 사용하면 된다. 따라서 certbot 패키지를 설치한다.
1. epel 저장소 활성화 하고.
#yum install epel-release -y
2. certbot설치한다.
#yum install certbot python2-certbot-apache -y
별 문제 없다면 간단히 설치가 가능하다.
이후, 인증서를 생성해서 이용하면된다.
주로 사용하는 명령은,
certbot certonly :: 신규 생성할때
certbot renew :: 갱신할때.
ㄴ실행시 인증과 관련된 문제가 있을때 "--no-verify" 명령 옵션을 넣주고 실행한다.
ㄴ갱신 테스트 해볼때는 "--dry-run" 옵션을 추가해서 실행한다.
cerbot certificates :: 설치된 인증서 확인할때.
'certbot'에 해당되는 글 3건
centos7에서 letsencrypt 설치하기
certbot renew 실패 오류 - apache plugin 관련
무료 인증서 letsencrypt 관리 프로그램 certbot 설치하기
letsencrypt 를 설치(dnf install letsencrypt) 후
기존 사용하던 인증서를 복사해서
renew(certbot renew) 를 해 봤을때,
실패가 나면서 아래와 같은 오류 메세지가 있다면,
"The requested apache plugin does not appear to be installed"
certbot 실행에 필요한 apache plugin이 없다는 것이다.
certbot 관련 plugin은 letsencrypt를 설치 후 확인해 보면,
[root@sv]# yum list installed | grep certbot
certbot.noarch 1.11.0-2.el7 @epel
python2-certbot.noarch 1.11.0-2.el7 @epel
두가지만 나오는데,
갱신(renew)시 실패나면서 필요하다는 apache plugin은 없는 상태가.
certbot apache plugin은 찾아보면, python 관련되는 플러그인으로
위에 나온 python2-certbot 유형으로 찾으면 되는데.
위 의 경우는
python2-certbot-apache 가 필요한 상태이다.
설치는
yum install -y python2-certbot-apache
하면 된다.
이후 다시 확인해보면,
[root@sv]# yum list installed | grep certbot
certbot.noarch 1.11.0-2.el7 @epel
python2-certbot.noarch 1.11.0-2.el7 @epel
python2-certbot-apache.noarch 1.11.0-1.el7 @epel
추가된 항목이 보인다.
CentOS 7까지는 위와 같이 하면 될거고,
Rokey linux 에서는
설치된 버젼 확인후 apache plugin을 설치해 주면 된다.
apache plugin까지 설치하고 확인해보면, 아래와 같을 것이다.
[root@svr]# dnf list installed | grep certbot
certbot.noarch 1.22.0-1.el8 @epel
python3-certbot.noarch 1.22.0-1.el8 @epel
python3-certbot-apache.noarch 1.22.0-1.el8 @epel
letsencrypt ssl인증서 갱신, 생성 오류 사례
신규 인증서 생성시 아래와 같은 오류 발생 대처
에러1 -------------------------
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
An unexpected error occurred:
TypeError: __str__ returned non-string (type Error)
Please see the logfiles in /var/log/letsencrypt for more details.
해결 -------------------------
pip install urllib3==1.26.7
pip install requests==2.11.1
에러2 --------------------------
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
An unexpected error occurred:
SSLError: ("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",)
해결 ---------------------------
# --no-verify-ssl 옵션을 추가해서 생성한다.
certbot certonly --no-verify-ssl