zEitEr
Super Moderator
Probably it's high time to release it, as there will be many reports on the issue soon.
Let's Encrypt in use. Auto-renewal in 4 Days.
echo "letsencrypt_renewal_days=60" >> /usr/local/directadmin/conf/directadmin.conf
for file in `ls -1 /usr/local/directadmin/data/users/*/domains/*.cert.creation_time`; do echo -n 100 > $file; done;
echo "action=rewrite&value=letsencrypt" >> /usr/local/directadmin/data/task.queue && /usr/local/directadmin/dataskq
touch /usr/local/directadmin/scripts/custom/recreate_ssl_combined.sh
chmod 700 /usr/local/directadmin/scripts/custom/recreate_ssl_combined.sh
#!/bin/bash
#
# Written by Alex S Grebenschikov $ www.poralix.com ([email protected])
# A script to re-create combined cert for domains with Let's Encrypt SSL Certs.
#
for san in `ls -1 /usr/local/directadmin/data/users/*/domains/*.san_config`;
do
domain=`basename ${san}`;
dirname=`dirname ${san}`;
domain=${domain%.san_config};
if [ -e "${dirname}/${domain}.cert.creation_time" ] && [ -e "${dirname}/${domain}.cert" ] && [ -e "${dirname}/${domain}.key" ];
then
echo "[OK] Found $domain";
cat "${dirname}/${domain}.cert" "${dirname}/${domain}.cacert" > "${dirname}/${domain}.cert.combined";
fi;
done;
exit 0;
/usr/local/directadmin/scripts/custom/recreate_ssl_combined.sh
apachectl -t
nginx -t
A new message or response with subject:
Automated certificate renewal for mydomain.net has succeeded
has arrived for you to view.
Follow this link to view it:
https://mydomain.net:2222/CMD_TICKET?action=view&number=000000328&type=ticket
================================
Automated Message Generated by DirectAdmin 1.50.0
Do Not Reply.
You can ignore this fact if you don't have Nginx.
This is on an NGINX server alright. But I'm not entirely sure what you mean with combined/bundle certs. Are these LE certs where you have added additional domains manually and then resubmitted the certificate request?
Am I correct I have to perform all the steps as mentioned in this post or is there new information available?
http://forum.directadmin.com/showthread.php?t=53233&p=273056#post273056My first domain with a letsencrypt generated certifcate has been successfully renewed according to a DirectAdmin message, but the expiration date in the real certificate is still the old one and not extended with 3 months.
FYI the expiration date is 3 days away instead of 3 months.
Automated certificate renewal for phpfusion-nederlands.info has succeeded
Getting challenge for phpfusion-nederlands.info from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for www.phpfusion-nederlands.info from acme-server...
Waiting for domain verification...
Challenge is valid.
Generating 4096 bit RSA key for phpfusion-nederlands.info...
openssl genrsa 4096 > "/usr/local/directadmin/data/users/someuser/domains/phpfusion-nederlands.info.key.new"
Generating RSA private key, 4096 bit long modulus
.......++
................++
e is 65537 (0x10001)
Certificate for phpfusion-nederlands.info has been created successfully!
<br>
I expected 3 months to be added to the certificate, but it has still the old expiration date.
Is this correct? Or will the certificate be replaced automatically when the old one expires?
Getting challenge for <mydomain>.com from acme-server...
/usr/local/directadmin/scripts/letsencrypt.sh: 319: /usr/local/directadmin/scripts/letsencrypt.sh: cannot create /var/www/html/.well-known/acme-challenge/: Is a directory
/usr/local/directadmin/scripts/letsencrypt.sh: 322: [: -ne: unexpected operator
Waiting for domain verification...
rm: cannot remove `/var/www/html/.well-known/acme-challenge/': Is a directory
Challenge is . Details: . Exiting...
First time using SSL and Let's Encrypt with DirectAdmin. It's been 90 days, but my certificates aren't auto-renewing.
I also can't recreate the certificates manually anymore either.
Code:Getting challenge for <mydomain>.com from acme-server... /usr/local/directadmin/scripts/letsencrypt.sh: 319: /usr/local/directadmin/scripts/letsencrypt.sh: cannot create /var/www/html/.well-known/acme-challenge/: Is a directory /usr/local/directadmin/scripts/letsencrypt.sh: 322: [: -ne: unexpected operator Waiting for domain verification... rm: cannot remove `/var/www/html/.well-known/acme-challenge/': Is a directory Challenge is . Details: . Exiting...
Anything I can do to fix this?
CHALLENGE="`echo "${RESPONSE}" | egrep -o '{[^{]*\"type\":\"http-01\"[^}]*'`"
CHALLENGE="`echo "${RESPONSE}" | tr '\n' ' '| grep -Pzo '\"type\": \"http-01\",([\s\S]+)\"\s+}'`"
Compile time: May 20 2016 at 19:14:59
CHALLENGE="`echo "${RESPONSE}" | egrep -o '{[^{]*\"type\":\"http-01\"[^}]*'`"
CHALLENGE="`echo "${RESPONSE}" | awk '/\"type\": \"http-01\"/,/}/'`"