Line 0
Link Here
|
|
|
1 |
|
2 |
There are example scripts in |
3 |
%%ETCDIR%% |
4 |
that you can use for renewing and deploying certificates. |
5 |
|
6 |
In order to run the script regularly to update the certificates add this line |
7 |
to /etc/periodic.conf: |
8 |
|
9 |
weekly_lego_enable="YES" |
10 |
|
11 |
Additionally the following parameters may be added to /etc/periodic.conf: |
12 |
|
13 |
Script to run to renew certificates, will be run as %%LEGO_USER%% (required) |
14 |
weekly_lego_renewscript="%%ETCDIR%%/lego.sh" |
15 |
|
16 |
To run a script after the renewal to deploy certificates |
17 |
weekly_lego_deployscript="%%ETCDIR%%/deploy.sh" |
18 |
|
19 |
If using the example renew script, add the domains for which lego will manage |
20 |
certificates to |
21 |
%%ETCDIR%%/domains.txt, one domain on each line. |
22 |
|
23 |
To add a Subject Alternate Name to the certificate, append the domain(s) to the |
24 |
line: |
25 |
example.com www.example.com |
26 |
|
27 |
To run lego for the first time, edit |
28 |
%%ETCDIR%%/lego.sh |
29 |
and set the EMAIL variable. |
30 |
|
31 |
Then run lego.sh with the run argument as the %%LEGO_USER%% user: |
32 |
$ %%ETCDIR%%/lego.sh run |
33 |
|
34 |
Subsequent periodic runs will run with the renew argument by default, with a |
35 |
renewal interval of 30 days. |
36 |
|
37 |
|