Https Let's Encrypt筆記



1.安裝certbot

  yum install epel-release
  yum install certbot python3-certbot-apache	

2.設定VirtualHost

vim /etc/httpd/con.f/doamin.conf

<VirtualHost *:80>
 ServerName     your domain name
 DocumentRoot your web path
 RewriteEngine on
</VirtualHost>

<Directory your web path>
        Options FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

3.取得 Let's Encrypt SSL頻證

  certbot --apache

4.更新SSL憑證

 certbot --force-renew -d domain name

5.查看憑證是否正常運作

 certbot renew --dry-run