Skip to navigation
Bash script to request via acme.sh multiple lets encrypt certs specially used for lighttpd
31.10.23
Bash script to request via acme.sh multiple lets encrypt certs specially used for lighttpd ```bash #!/bin/bash domains=('bar.foo.com' 'bar2.foo2.com') path=/usr/local/letsencrypt for domain in "${domains[@]}" do echo "...request certificate for : "$domain /root/.acme.sh/acme.sh --issue -d $domain -w $path #/root/.acme.sh/acme.sh --test --issue --debug -d $domain -w $path mkdir $path/$domain /root/.acme.sh/acme.sh \ --install-cert \ -d $domain \ --cert-file $path/$domain/cert.pem \ --key-file $path/$domain/key.pem \ --fullchain-file $path/$domain/fullchain.pem \ --reloadcmd "cd $path/$domain; cat cert.pem key.pem > all.pem;service lighttpd restart" done ```
https://letsencrypt.org/how-it-works/
Reply
Anonymous
Information Epoch 1732397290
When in doubt, use brute force.
Home
Notebook
Contact us