무료 인증서 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