레이블이 Free SSL Certificate인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Free SSL Certificate인 게시물을 표시합니다. 모든 게시물 표시

2017년 2월 17일 금요일

CentOS 7.x Free SSL Certificate

CentOS 7.x Free SSL Certificate



# yum install mod_ssl letsencrypt

# systemctl stop httpd

# letsencrypt certonly --standalone -d www.example.com


Configration for Apache

# vi /etc/httpd/conf.d/www.example.com.conf
<VirtualHost www.example.com:443>
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/www.example.com/cert.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/www.example.com/privkey.pem
    SSLCertificateChainFile /etc/letsencrypt/live/www.example.com/fullchain.pem
    ServerName www.example.com
    DocumentRoot /var/www/html
    ErrorLog logs/www.example.com_error_log
    CustomLog logs/www.example.com_access_log common
</VirtualHost>


reference

http://blog.ivps.kr/188

http://blog.ivps.kr/189