This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:ubuntu:certbot [2018/01/05 17:51] – 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 48: | Line 60: | ||
| </ | </ | ||
| - | ===== Commands | + | ===== Automation |
| + | Create a script for automation | ||
| + | |||
| + | < | ||
| + | #!/bin/bash | ||
| + | / | ||
| + | mail -s " | ||
| + | DATE=`date +%Y-%m-%d` | ||
| + | mv / | ||
| + | exit 0 | ||
| + | </ | ||
| + | |||
| + | Add to your crontab | ||
| + | |||
| + | < | ||
| + | |||
| + | ===== Commands ===== | ||
| - | certbot certonly --webroot --agree-tos --no-eff-email --email < | + | ^ Command |
| - | Obtain or renew a certificate | + | | %%certbot certonly --webroot --agree-tos --no-eff-email --email < |
| - | certbot | + | | |
| - | certbot certonly --dry-run Test " | + | | %%certbot certonly --dry-run%% | |
| - | certbot certificates Display information about certificates you have from Certbot | + | | |
| - | certbot revoke Revoke a certificate (supply --cert-path) | + | | |
| - | certbot delete Delete a certificate | + | | |