Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unneccesary separate cert for www-subdomain? #2

Merged
merged 2 commits into from Oct 29, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 8 additions & 5 deletions renew.sh
Expand Up @@ -18,10 +18,13 @@ fi


for domain in "${domains[@]}"; do
/usr/bin/certbot certonly --agree-tos --renew-by-default --email $email --webroot -w $w_root$domain -d $domain
cat /etc/letsencrypt/live/$domain/privkey.pem /etc/letsencrypt/live/$domain/cert.pem > ssl.pem
cp ssl.pem /etc/lighttpd/$domain.pem
cp /etc/letsencrypt/live/$domain/fullchain.pem /etc/lighttpd/
/usr/bin/certbot certonly --agree-tos --renew-by-default \
--email $email --webroot -w $w_root$domain \
-d $domain
cat /etc/letsencrypt/live/$domain/privkey.pem \
/etc/letsencrypt/live/$domain/cert.pem \
> /etc/lighttpd/$domain.pem
cp /etc/letsencrypt/live/$domain/fullchain.pem \
/etc/lighttpd/
chown -R $user:$group /etc/lighttpd/
rm ssl.pem
done