certbot 설치
Certbot
Tagline
certbot.eff.org
Centos stream환경에서 certbot설치
1. snap 설치
https://snapcraft.io/docs/installing-snap-on-centos
https://snapcraft.io/docs/installing-snap-on-centos
snapcraft.io
버전업
sudo dnf install epel-release
sudo dnf upgrade
설치
sudo yum install snapd
실행
sudo systemctl enable --now snapd.socket
연결
sudo ln -s /var/lib/snapd/snap /snap
2. certbot 설치
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
sudo certbot --apache
---
Apache에 SSL모듈 설치되어있지 않아서 추가설치
yum install mod_ssl -y
---
sudo certbot --apache
해당에러 발생
AH00526: Syntax error on line 103 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty
에러처리
sudo openssl req -newkey rsa:2048 -nodes -keyout /etc/pki/tls/private/localhost.key -x509 -days 365 -out /etc/pki/tls/certs/localhost.crt
---
certbot --apache
적용완료
--