This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
internet:security:ssl_cert_letsencrypt [2018/10/29 10:11] 127.0.0.1 external edit |
internet:security:ssl_cert_letsencrypt [2020/08/09 12:21] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Let's Encrypt Free SSL Certificates ====== | ====== Let's Encrypt Free SSL Certificates ====== | ||
+ | |||
+ | See also **[[internet: | ||
**Home Page**: https:// | **Home Page**: https:// | ||
Line 6: | Line 8: | ||
**Webmin**: https:// | **Webmin**: https:// | ||
+ | |||
+ | ===== DNS ===== | ||
+ | |||
+ | CAA records authorize SSL certificate issuance by certain certificate authorities. | ||
+ | |||
+ | For Virtualmin managed domains, manually enter something like: | ||
+ | |||
+ | < | ||
+ | hostname.domain.tld. IN CAA 0 issue " | ||
+ | </ | ||
===== SSL Certificate Testing ===== | ===== SSL Certificate Testing ===== | ||
Line 23: | Line 35: | ||
==== Certify the Web ==== | ==== Certify the Web ==== | ||
+ | |||
+ | **Home**: https:// | ||
**Single**: https:// | **Single**: https:// | ||
Line 63: | Line 77: | ||
===== Ubuntu 16.04 ===== | ===== Ubuntu 16.04 ===== | ||
+ | |||
+ | ==== Apache ==== | ||
+ | |||
+ | :!: This will install Apache if not already installed. | ||
https:// | https:// | ||
Line 79: | Line 97: | ||
certbot renew --dry-run | certbot renew --dry-run | ||
</ | </ | ||
- | |||
- | ==== Troubleshooting ==== | ||
- | |||
- | **Remove scheduled task and registry key** (HKEY_LOCAL_MACHINE\Software\letsencrypt-win-simple), | ||
- | |||
- | Increase verbosity: < | ||
===== Virtualmin ===== | ===== Virtualmin ===== | ||
Line 105: | Line 117: | ||
===== Webmin ===== | ===== Webmin ===== | ||
+ | |||
+ | <note important> | ||
+ | |||
+ | ==== DNS ==== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | :!: Add this for testing: < | ||
+ | |||
+ | < | ||
+ | apt install certbot | ||
+ | |||
+ | certbot -d hostname.yourdomain.tld --manual --preferred-challenges dns certonly | ||
+ | |||
+ | certbot renew --dry-run | ||
+ | |||
+ | certbot certificates | ||
+ | </ | ||
+ | |||
+ | ==== HTTP ==== | ||
**Documentation**: | **Documentation**: | ||
Line 120: | Line 154: | ||
{{ : | {{ : | ||
- | ===== Zimbra | + | ===== Log Rotation |
- | https:// | + | :!: Certbot has its own log rotation. |
- | https://github.com/YetOpen/ | + | **/etc/logrotate.d/letsencrypt** |
- | + | ||
- | ==== Install CertBot ==== | + | |
< | < | ||
- | wget https://dl.eff.org/certbot-auto -P /usr/local/bin | + | /var/log/letsencrypt/ |
- | chmod a+x /usr/local/bin/certbot-auto | + | daily |
+ | rotate 0 | ||
+ | firstaction | ||
+ | | ||
+ | endscript | ||
+ | nocreate | ||
+ | missingok | ||
+ | notifempty | ||
+ | } | ||
</ | </ | ||
- | Obtain '' | + | Test: |
< | < | ||
- | cd /usr/local/src | + | ll /var/log/letsencrypt/ |
- | git clone https://github.com/YetOpen/ | + | logrotate -f /etc/logrotate.d/letsencrypt |
- | cd certbot-zimbra | + | ll / |
</ | </ | ||
- | Install the LetsEncrypt certificate in Zimbra: | + | ===== Troubleshooting ===== |
+ | **Remove scheduled task and registry key** (HKEY_LOCAL_MACHINE\Software\letsencrypt-win-simple), | ||
+ | |||
+ | Increase verbosity: < | ||