root@server:~# /usr/local/directadmin/scripts/letsencrypt.sh request example.com 4096
Getting challenge for tekkenzone.net from acme-server...
Waiting for domain verification...
Challenge is invalid. Details: Could not connect to http://example.com/.well-known/acme-challenge/E8aOlQiwbDB0bE8obJW1tXdm1VoY-gIxjN0w3UPbVSs. Exiting...
66.133.109.36 - - [21/Feb/2016:19:11:56 +0100] "GET /.well-known/acme-challenge/E8aOlQiwbDB0bE8obJW1tXdm1VoY-gIxjN0w3UPbVSs HTTP/1.0" 200 379 "-" "Mozilla/5.0 (compatible; Let's Encrypt validation server; +https://www.letsencrypt.org)"
ls -1 /usr/local/directadmin/custombuild/custom/nginx*/conf/
Do you have custom templates?
Code:ls -1 /usr/local/directadmin/custombuild/custom/nginx*/conf/
nano /usr/local/directadmin/data/users/username/domains/domain.com.cert.san_config
subjectAltName=DNS:example.com,DNS:www.example.com,DNS:example.net,DNS:www.example.net
./letsencrypt.sh renew example.com 4096
Getting challenge for example.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for www.example.com from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for example.net from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for www.example.net from acme-server...
Waiting for domain verification...
Challenge is valid.
Generating 4096 bit RSA key for poollicht.be...
openssl genrsa 4096 > "/usr/local/directadmin/data/users/username/domains/example.com.key.new"
Generating RSA private key, 4096 bit long modulus
................++
...................++
Certificate for example.com has been created successfully!
Did you change/add the location in nginx?
recently (10-20-30 minutes ago)?
my conf looks exactly like that too
domain.com.cert.san_config
still doesnt generate certificate
ssl_certificate /etc/nginx/ssl.crt/server.crt.combined;
ssl_certificate_key /etc/nginx/ssl.key/server.key;
can anyone help me please
cd /usr/local/directadmin/scripts
./letsencrypt.sh request [B]your.hostname.com [/B]4096
cd /usr/local/directadmin/scripts
./letsencrypt.sh request [B]domain.com [/B]4096 "" /var/www/html/
Thanks for the update, works great so far. What is the recommended ciphersuite we can use now for DirectAdmin? I saw the the current SSL cipherlists page hasn't been updated.
What is the bug exactly ? everything seems fine here, is it mandatory to apply this patch ?
These are server-level certificates (for your hostname). To generate these, you should start letsencrypt.sh manually:
Code:cd /usr/local/directadmin/scripts ./letsencrypt.sh request [B]your.hostname.com [/B]4096
To manually generate a certificate for any of your domains with letsencrypt=1 set in directadmin.conf (you'd need to enable SSL for the domain in DA this way):
Code:cd /usr/local/directadmin/scripts ./letsencrypt.sh request [B]domain.com [/B]4096 "" /var/www/html/
but if i want to use =1 how would i get those cert when my domains are on /home/users
These are server-level certificates (for your hostname). To generate these, you should start letsencrypt.sh manually:
Code:cd /usr/local/directadmin/scripts ./letsencrypt.sh request [B]your.hostname.com [/B]4096
To manually generate a certificate for any of your domains with letsencrypt=1 set in directadmin.conf (you'd need to enable SSL for the domain in DA this way):
Code:cd /usr/local/directadmin/scripts ./letsencrypt.sh request [B]domain.com [/B]4096 "" /var/www/html/
There seems to be a bug with DA 1.50 and letsencrypt=1 option, to fix it, pelase use:
Code:perl -pi -e 's|DOCUMENT_ROOT=\$5|DOCUMENT_ROOT=/var/www/html|' /usr/local/directadmin/scripts/letsencrypt.sh