Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:ssl [2023/03/10 06:04] – [Install] darron | tools:ssl [2024/07/17 12:03] (current) – [Issue cert] darron | ||
---|---|---|---|
Line 27: | Line 27: | ||
a daily cron job. | a daily cron job. | ||
- | Disable the following cron job which will be replaced later by another | + | Disable the following cron job which will be replaced later by a different |
< | < | ||
Line 67: | Line 67: | ||
sudo mkdir -p / | sudo mkdir -p / | ||
- | sudo chown -R $USER:$USER / | + | sudo chown -R $USER:$GROUP / |
export LE_WORKING_DIR=" | export LE_WORKING_DIR=" | ||
- | $HOME/ | + | $HOME/ |
sudo mkdir -p / | sudo mkdir -p / | ||
Line 76: | Line 76: | ||
sudo mkdir -p / | sudo mkdir -p / | ||
- | sudo chown -R $USER:$USER / | + | sudo chown -R $USER:$GROUP / |
$HOME/ | $HOME/ | ||
Line 98: | Line 98: | ||
fi | fi | ||
- | sudo find / | + | sudo find / |
export LE_WORKING_DIR=" | export LE_WORKING_DIR=" | ||
Line 111: | Line 111: | ||
#sudo kill -HUP `ps auxw | egrep ' | #sudo kill -HUP `ps auxw | egrep ' | ||
#sudo kill -USR1 `ps auxw | egrep ' | #sudo kill -USR1 `ps auxw | egrep ' | ||
- | |||
sudo / | sudo / | ||
Line 117: | Line 116: | ||
</ | </ | ||
+ | Eg. | ||
+ | < | ||
+ | 0 0 2 * * / | ||
+ | </ | ||
===Remove cert=== | ===Remove cert=== | ||
Line 137: | Line 140: | ||
$HOME/ | $HOME/ | ||
- | rm -Rf $HOME/ | + | rm -Rf $HOME/ |
sudo rm -Rf / | sudo rm -Rf / | ||
Line 161: | Line 164: | ||
< | < | ||
acme.sh --set-default-ca --server zerossl | acme.sh --set-default-ca --server zerossl | ||
+ | </ | ||
+ | |||
+ | ===Other=== | ||
+ | |||
+ | After issuing and later renewing certificates fullchain.pem and key.pem may be | ||
+ | copied and utilised by both exim and dovecot. Exim will | ||
+ | need read permission for the exim user. | ||
+ | |||
+ | For example, fullchain and key are copied into / | ||
+ | |||
+ | ==Exim4== | ||
+ | |||
+ | < | ||
+ | tls_certificate = / | ||
+ | tls_privatekey | ||
+ | </ | ||
+ | |||
+ | ==Dovecot== | ||
+ | |||
+ | < | ||
+ | ssl_cert = </ | ||
+ | ssl_key = </ | ||
</ | </ | ||