Centos7 apache certbot ssl 인중

배찌 (배찌)·2023년 2월 21일
0

설치 기록

목록 보기
5/12

Let's Encrypt 서비스를 사용

sudo yum install certbot mod_ssl

mod_ssl은 apache 모듈 중 하나이다.
지금은 apache에 모두 적용하지만 일반적으로는 apache에 ssl tomcat에 키를 저장한다

certbot에게 ssl발급

cetbot --apache

아파치 설정 추가

vi /etc/httpd/conf/httpd.conf
<VirtualHost *:443>
    ServerName example.com
    DocumentRoot /var/www/html

    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/example.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/example.com/chain.pem
</VirtualHost>

ServerName과 DocumentRoot의 경우 사용자가 다르게 적용이 가능하다.

profile
Never give up Impossible is nothing

0개의 댓글