Skip to content

Commit

Permalink
Merge pull request #111 from Reldeis/master
Browse files Browse the repository at this point in the history
Add eol to letsencrypt provided files [Issue #110]
  • Loading branch information
tomav committed Mar 31, 2016
2 parents 8c6464d + 09315d3 commit 735bbca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions start-mailserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ fi
case $DMS_SSL in
"letsencrypt" )
# letsencrypt folders and files mounted in /etc/letsencrypt
# add eol to all files before concatenation
sed -i -e '$a\' /etc/letsencrypt/live/$(hostname)/cert.pem
sed -i -e '$a\' /etc/letsencrypt/live/$(hostname)/chain.pem
sed -i -e '$a\' /etc/letsencrypt/live/$(hostname)/privkey.pem

# Postfix configuration
sed -i -r 's/smtpd_tls_cert_file=\/etc\/ssl\/certs\/ssl-cert-snakeoil.pem/smtpd_tls_cert_file=\/etc\/letsencrypt\/live\/'$(hostname)'\/fullchain.pem/g' /etc/postfix/main.cf
Expand Down

0 comments on commit 735bbca

Please sign in to comment.