Template:Let’s Encrypt/New Cert Command: Difference between revisions
From wiki
Created page with "<noinclude> == Description == <templatedata> { "description": "Warning about instructions applying only to the Debian distribution", "params": { "domain": { "descriptio..." |
Make post command optional |
||
(10 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "Show Let’s Encrypt command to create a new certificate", | ||
"params": { | "params": { | ||
"domain": { | "domain": { | ||
"description": "For | "description": "For which domain will you certificate be issued", | ||
"example": "wiki.example.com", | "example": "wiki.example.com", | ||
"type": "string", | "type": "string", | ||
Line 15: | Line 15: | ||
"example": "service nginx restart", | "example": "service nginx restart", | ||
"type": "string", | "type": "string", | ||
" | "suggested": true | ||
}, | |||
"beforeCommand": { | |||
"label": "Before Command", | |||
"description": "Command to be run before getting the certificate", | |||
"example": "# service nginx reload", | |||
"type": "string" | |||
} | } | ||
} | } | ||
Line 22: | Line 28: | ||
== Example == | == Example == | ||
<nowiki>{{Let’s Encrypt New Cert|domain=example.com|command=service nginx reload}}</nowiki> | <nowiki>{{Let’s Encrypt/New Cert Command|domain=example.com|command=service nginx reload}}</nowiki> | ||
{{Let’s Encrypt/New Cert Command|domain=example.com|command=service nginx reload}} | |||
{{Let’s Encrypt New Cert|domain=example.com|command=service nginx reload}} | </noinclude><includeonly>{{#tag:syntaxhighlight| | ||
</noinclude><includeonly> | {{#if: {{{beforeCommand|}}} | {{{beforeCommand}}} }} | ||
{{#tag:syntaxhighlight|# /usr/local/sbin/ | $ sudo /usr/local/sbin/certmanage | ||
Renewing certificate for {{{domain}}} that will expire on 0001-01-01 | Renewing certificate for {{{domain}}} that will expire on 0001-01-01 | ||
Saving debug log to /var/log/letsencrypt/letsencrypt.log | |||
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org | |||
Obtaining a new certificate | |||
Performing the following challenges: | |||
http-01 challenge for {{{domain}}} | |||
Using the webroot path /var/www/acme-challenge for all unmatched domains. | |||
Waiting for verification... | |||
Cleaning up challenges | |||
Generating key (2048 bits): /etc/letsencrypt/keys/1764_key-certbot.pem | |||
Creating CSR: /etc/letsencrypt/csr/1764_csr-certbot.pem | |||
IMPORTANT NOTES: | IMPORTANT NOTES: | ||
- Congratulations! Your certificate and chain have been saved at | - Congratulations! Your certificate and chain have been saved at | ||
/etc/letsencrypt/live/{{{domain}}}/fullchain.pem. Your | /etc/letsencrypt/live/{{{domain}}}/fullchain.pem. Your cert | ||
will expire on {{#time: Y-m-d | now + 90 day}}. To obtain a new or tweaked version of | |||
certificate in the future, simply run | this certificate in the future, simply run certbot again. To | ||
- If you like | non-interactively renew *all* of your certificates, run "certbot | ||
renew" | |||
- If you like Certbot, please consider supporting our work by: | |||
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate | Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate | ||
Donating to EFF: https://eff.org/donate-le | Donating to EFF: https://eff.org/donate-le | ||
Restarting services: | {{#if: {{{command|}}} | Restarting services: | ||
{{command}} | {{{command}}} }} | ||
|lang="console"}} | |lang="console"}}</includeonly> | ||
</includeonly> |
Latest revision as of 09:41, 2 April 2017
Description
Show Let’s Encrypt command to create a new certificate
Parameter | Description | Type | Status | |
---|---|---|---|---|
domain | domain | For which domain will you certificate be issued
| String | required |
command | command | Command to be run after certificate creation
| String | suggested |
Before Command | beforeCommand | Command to be run before getting the certificate
| String | optional |
Example
{{Let’s Encrypt/New Cert Command|domain=example.com|command=service nginx reload}}
$ sudo /usr/local/sbin/certmanage
Renewing certificate for example.com that will expire on 0001-01-01
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for example.com
Using the webroot path /var/www/acme-challenge for all unmatched domains.
Waiting for verification...
Cleaning up challenges
Generating key (2048 bits): /etc/letsencrypt/keys/1764_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/1764_csr-certbot.pem
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/example.com/fullchain.pem. Your cert
will expire on 2025-07-20. To obtain a new or tweaked version of
this certificate in the future, simply run certbot again. To
non-interactively renew *all* of your certificates, run "certbot
renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
Restarting services:
service nginx reload