This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:ubuntu:certbot [2018/01/05 17:50] – created lunetikk | linux:ubuntu:certbot [2018/12/13 09:28] (current) – [nginx] lunetikk | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | |||
| - | [[https:// | ||
| < | < | ||
| Line 16: | Line 14: | ||
| ==== nginx ==== | ==== nginx ==== | ||
| + | |||
| + | Good guide for nginx config and cronjob for auto renew\\ | ||
| + | [[https:// | ||
| + | |||
| Create "/ | Create "/ | ||
| Line 29: | Line 31: | ||
| < | < | ||
| - | Create a folder for challanges | + | Create a folder for challenges |
| - | < | + | < |
| ==== apache2 ==== | ==== apache2 ==== | ||
| + | Just try it. | ||
| ===== Get certs ===== | ===== Get certs ===== | ||
| Line 41: | Line 44: | ||
| </ | </ | ||
| + | ==== nginx ==== | ||
| + | Add to your vhost config | ||
| + | < | ||
| + | ssl_certificate / | ||
| + | ssl_certificate_key / | ||
| + | ssl_trusted_certificate / | ||
| + | </ | ||
| + | |||
| + | ==== apache2 ==== | ||
| Add to your vhost config | Add to your vhost config | ||
| < | < | ||
| Line 47: | Line 59: | ||
| SSLCertificateChainFile / | SSLCertificateChainFile / | ||
| </ | </ | ||
| + | |||
| + | ===== Automation ===== | ||
| + | |||
| + | Create a script for automation | ||
| + | |||
| + | < | ||
| + | #!/bin/bash | ||
| + | / | ||
| + | mail -s " | ||
| + | DATE=`date +%Y-%m-%d` | ||
| + | mv / | ||
| + | exit 0 | ||
| + | </ | ||
| + | |||
| + | Add to your crontab | ||
| + | |||
| + | < | ||
| + | |||
| + | ===== Commands ===== | ||
| + | |||
| + | ^ Command | ||
| + | | %%certbot certonly --webroot --agree-tos --no-eff-email --email < | ||
| + | | certbot | ||
| + | | %%certbot certonly --dry-run%% | ||
| + | | certbot certificates | ||
| + | | certbot revoke | ||
| + | | certbot delete | ||