Difference between revisions of "Template:Let’s Encrypt/New Cert Command"
From wiki
(Rename) |
(beforeCommand param) |
||
Line 16: | Line 16: | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true | ||
+ | }, | ||
+ | "beforeCommand": { | ||
+ | "label": "Before Command", | ||
+ | "description": "Command to be run before getting the certificate", | ||
+ | "example": "# service nginx reload", | ||
+ | "type": "string" | ||
} | } | ||
} | } | ||
Line 23: | Line 29: | ||
== Example == | == Example == | ||
<nowiki>{{Let’s Encrypt/New Cert Command|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 Command|domain=example.com|command=service nginx reload}} | ||
</noinclude><includeonly> | </noinclude><includeonly> | ||
− | {{#tag:syntaxhighlight|# /usr/local/sbin/renew_certificates | + | {{#tag:syntaxhighlight|{{#if: {{{beforeCommand|}}} | {{{beforeCommand}}} |
+ | <nowiki></nowiki>}}# /usr/local/sbin/renew_certificates | ||
Renewing certificate for {{{domain}}} that will expire on 0001-01-01 | Renewing certificate for {{{domain}}} that will expire on 0001-01-01 | ||
Revision as of 00:06, 21 March 2016
Description
Show Let’s Encrypt command to create a new certificate
Parameter | Description | Type | Status | |
---|---|---|---|---|
Domain | domain | For wich domain will you certificate be issued
| String | required |
Command | command | Command to be run after certificate creation
| String | required |
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}}
# /usr/local/sbin/renew_certificates
Renewing certificate for example.com that will expire on 0001-01-01
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/example.com/fullchain.pem. Your
cert will expire on 2025-02-19. To obtain a new version of the
certificate in the future, simply run Let's Encrypt again.
- If you like Let's Encrypt, 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