Deploy Letsencrypt with apache on CentOS 7.X
1. change to root
$ su -
2. install epel, mod_ssl, httpd, snapd
$ yum -y install epel-* mod_ssl httpd
$ yum -y install snapd
$ systemctl enable snapd; systemctl start snapd
3. create a soft link for /snap
$ ln -s /var/lib/snapd/snap /snap
4. test snapd for latest version and install classic certbot
$ snap install core; snap refresh core
$ snap install --classic certbot
5.
$ ln -s /snap/bin/certbot /usr/bin/certbot
$ certbot --apache
6. renew cert with certbot periodically or add in corn table
certbot renew --dry-run
certbot renew
References
https://snapcraft.io/docs/installing-snap-on-centos
https://certbot.eff.org/instructions?ws=apache&os=centosrhel7
https://letsencrypt.org/zh-tw/donate/