This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
internet:security:ssl_cert_letsencrypt [2019/03/13 14:28] gcooper |
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 106: | Line 118: | ||
===== Webmin ===== | ===== Webmin ===== | ||
- | FIXME | + | <note important> |
- | <note important> | + | ==== DNS ==== |
- | https:// | + | 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 | ||
+ | </file> | ||
+ | |||
+ | ==== HTTP ==== | ||
**Documentation**: | **Documentation**: | ||
Line 125: | Line 153: | ||
{{ : | {{ : | ||
+ | |||
+ | ===== Log Rotation ===== | ||
+ | |||
+ | :!: Certbot has its own log rotation. | ||
+ | |||
+ | **/ | ||
+ | |||
+ | < | ||
+ | / | ||
+ | daily | ||
+ | rotate 0 | ||
+ | firstaction | ||
+ | / | ||
+ | endscript | ||
+ | nocreate | ||
+ | missingok | ||
+ | notifempty | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Test: | ||
+ | |||
+ | < | ||
+ | ll / | ||
+ | logrotate -f / | ||
+ | ll / | ||
+ | </ | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== |