Thank you! I can confirm this works great!
So after making this edit will it retry tomorrow or is there something else I have to do?
Thank you! I can confirm this works great!
So after making this edit will it retry tomorrow or is there something else I have to do?
I’ve installed prerelease directadmin version. Please check if sni and letsencrypt works as expected.
Getting challenge for publicoll.com from acme-server...
/usr/local/directadmin/scripts/letsencrypt.sh: line 319: /var/www/html/.well-known/acme-challenge/: Is a directory
/usr/local/directadmin/scripts/letsencrypt.sh: line 322: [: -ne: unary operator expected
Waiting for domain verification...
rm: cannot remove `/var/www/html/.well-known/acme-challenge/': Is a directory
Challenge is . Details: . Exiting...
<br>
Subject: Automated certificate renewal for publicoll.com has succeeded
Getting challenge for publicoll.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for www.publicoll.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Generating 4096 bit RSA key for publicoll.com...
openssl genrsa 4096 > "/usr/local/directadmin/data/users/crebezze/domains/publicoll.com.key.new"
Generating RSA private key, 4096 bit long modulus
............................................++
..........................................................................................................................................................................++
e is 65537 (0x10001)
Certificate for publicoll.com has been created successfully!
Let's encrypt support was marked as BETA in DirectAdmin 1.50: https://www.directadmin.com/features.php?id=1828. That's the reason why a new version of DA hasn't been released just to fix the let's encrypt issue.
To fix the script for DA 1.50 it's enough to change the following line:
Code:CHALLENGE="`echo "${RESPONSE}" | egrep -o '{[^{]*\"type\":\"http-01\"[^}]*'`"
To:
Code:CHALLENGE="`echo "${RESPONSE}" | awk '/\"type\": \"http-01\"/,/}/'`"
Let's encrypt support was marked as BETA in DirectAdmin 1.50: https://www.directadmin.com/features.php?id=1828. That's the reason why a new version of DA hasn't been released just to fix the let's encrypt issue.
HOnestly, why release stable software with BETA features in it which if they break may have a large impact on people their important webpresence?
And then the moment it breaks you give the fix, kudos for that, but start pointing to "its" a beta version feature you should have known that" is quite sick. We paying users are not your beta testing team you know, certainly not with our production systems.
And certainly not with a security feature like this.
HOnestly, why release stable software with BETA features in it which if they break may have a large impact on people their important webpresence?
And then the moment it breaks you give the fix, kudos for that, but start pointing to "its" a beta version feature you should have known that" is quite sick. We paying users are not your beta testing team you know, certainly not with our production systems.
And certainly not with a security feature like this.
Urgent:
I did the fix mentioned in this topic and it SEEMED to fix it, since a new certificate was succesfully created, BUT:
now all my sites stopped working after the certificates expired.
So even though a new certificate was generated, it seems as tough nginx doesn't use these new cetificates.
Message before the fix:
Message after the fix:
But as you can see on https://www.publicoll.com, the renewal of the certificate did not fully work.
Now many sites are broken.
How can I fix this?
Thank you!
service httpd restart
Getting challenge for mail.da.myserver.net from acme-server...
Error: http://mail.da.myserver.net/.well-known/acme-challenge/letsencrypt_1493799042 is not reachable. Aborting the script.
dig output for mail.da.myserver.net:
Please make sure /.well-known alias is setup in WWW server.
[root@da scripts]# ./letsencrypt.sh request_single da.mydomain.com 4096
Setting up certificate for a hostname: da.mydomain.com
Getting challenge for da.mydomain.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Generating 4096 bit RSA key for da.mydomain.com...
openssl genrsa 4096 > "/usr/local/directadmin/conf/cakey.pem.new"
Generating RSA private key, 4096 bit long modulus
etc
Solved!
Code:[root@da scripts]# ./letsencrypt.sh request_single da.mydomain.com 4096 Setting up certificate for a hostname: da.mydomain.com Getting challenge for da.mydomain.com from acme-server... Waiting for domain verification... Challenge is valid. Generating 4096 bit RSA key for da.mydomain.com... openssl genrsa 4096 > "/usr/local/directadmin/conf/cakey.pem.new" Generating RSA private key, 4096 bit long modulus etc
WTF? All this time the certificate was working properly off mydomain.com as da.mydomain.com as subdomain then come renewal it fails? So how was it working as da.mydomain.com on my hostname all this time?