bschelst/ April 16, 2017/ Ispconfig/ 0 comments

You can use Letsencrypt certificates for the Ispconfig admin console too.
In order to achieve this, you can use the following commands:

 
### as super user of course
DOMAIN="www.mydomain.com"
letsencrypt auth --text --agree-tos --authenticator webroot --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --email [email protected]${DOMAIN} --domains ${DOMAIN} --webroot-path /usr/local/ispconfig/interface/acme
dt=`date '+%Y%m%d%H%M%S'` 
cd /usr/local/ispconfig/interface/ssl/ 
for ext in csr key.secure key crt
do
 if [ -f ispserver.$ext ]
 then 
   mv ispserver.$ext ispserver.$ext.old.$dt
 fi
done
ln -s /etc/letsencrypt/live/${DOMAIN}/privkey.pem ispserver.key
ln -s /etc/letsencrypt/live/${DOMAIN}/fullchain.pem ispserver.crt
service apache2 restart 
Share this Post

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
*
*

eighteen − twelve =