See update at the end, which may explain the issue
I would like to add a request for your views / advice on a problem I have on two virtual machines that I copied from another working VM:
When I try to create new Lets Encrypt certificates I get the following error (which may or may not be related to the fact that I copied the VM)
- Lets Encrypt is working well in the original VM, but not in both copies.
- In the copied VMs I changed the IP-address (using the IPswap script), renewed the SSL certificates, changed the hostname, etc.
- I updated DirectAdmin and Lets Encrypt to the latest versions using Custombuild.
- After trying different letsencrypt.sh options (that didn't work), I followed the instructions at https://help.directadmin.com/item.php?id=629 that I followed when I installed the original VM. This did not work either.
- The hostname (and mail.hostname) resolve to the IP of the VM (as you can see in the output of ATTEMP 3, below).
- I also did the rewrite_configs
ATTEMPT 1:
I also get this error when I try to add a subdomain with the hostname (command taken from the DA help page https://help.directadmin.com/item.php?id=645):
ATTEMPT2:
Then I tried the 'old' way (https://help.directadmin.com/item.php?id=645) which is what I have been doing up until now on my servers:
ATTEMPT 3:
Any thoughts on what could be causing this problem and/or how I could move to fixing it? Could it be linked to the new version of Lets Encrypt, or is it specific to the fact that the VMs are clones? Is there another issue at play?
Thank you and kind regards,
Harro
UPDATE:
In the shell there was no clarification of the error, but in the message system it did show the actual error message:
Could that ultimately be the cause (strange error reporting on the command line, though)? How long will I need to wait before I can make a new request?
I would like to add a request for your views / advice on a problem I have on two virtual machines that I copied from another working VM:
When I try to create new Lets Encrypt certificates I get the following error (which may or may not be related to the fact that I copied the VM)
- Lets Encrypt is working well in the original VM, but not in both copies.
- In the copied VMs I changed the IP-address (using the IPswap script), renewed the SSL certificates, changed the hostname, etc.
- I updated DirectAdmin and Lets Encrypt to the latest versions using Custombuild.
- After trying different letsencrypt.sh options (that didn't work), I followed the instructions at https://help.directadmin.com/item.php?id=629 that I followed when I installed the original VM. This did not work either.
- The hostname (and mail.hostname) resolve to the IP of the VM (as you can see in the output of ATTEMP 3, below).
- I also did the rewrite_configs
ATTEMPT 1:
scripts]# ./letsencrypt.sh request hostname.domain.tld 4096
Generating 4096 bit RSA key for hostname.domain.tld...
openssl genrsa 4096 > "/usr/local/directadmin/data/users/admin/domains/hostname.domain.tld.key.new"
Generating RSA private key, 4096 bit long modulus
.................................................................................................................................................................++
.....................................................................................................................................................................++
e is 65537 (0x10001)
Error Loading request extension section SAN
3071907564:error:2206D06C:X509 V3 routines:X509V3_parse_list:invalid null name:v3_utl.c:326:
3071907564:error:22097069:X509 V3 routinesO_EXT_NCONF:invalid extension string:v3_conf.c:139:name=subjectAltName,section=
3071907564:error:22098080:X509 V3 routines:X509V3_EXT_nconf:error in extension:v3_conf.c:93:name=subjectAltName, value=
Size of certificate response is smaller than 500 characters, it means something went wrong. Printing response...
I also get this error when I try to add a subdomain with the hostname (command taken from the DA help page https://help.directadmin.com/item.php?id=645):
ATTEMPT2:
scripts]# ./letsencrypt.sh request `hostname`,mail.papillon.plie.nl,ftp.papillon.plie.nl,papillon.plie.nl 4096
skipping papillon.plie.nl challenge test failed
skipping mail.papillon.plie.nl challenge test failed
skipping ftp.papillon.plie.nl challenge test failed
skipping papillon.plie.nl challenge test failed
Generating 4096 bit RSA key for papillon.plie.nl...
openssl genrsa 4096 > "/usr/local/directadmin/data/users/admin/domains/papillon.plie.nl.key.new"
Generating RSA private key, 4096 bit long modulus
...........................................................................................................................................................................................................................................................++
...........................................................++
e is 65537 (0x10001)
Error Loading request extension section SAN
3072165612:error:2206D06C:X509 V3 routines:X509V3_parse_list:invalid null name:v3_utl.c:326:
3072165612:error:22097069:X509 V3 routinesO_EXT_NCONF:invalid extension string:v3_conf.c:139:name=subjectAltName,section=
3072165612:error:22098080:X509 V3 routines:X509V3_EXT_nconf:error in extension:v3_conf.c:93:name=subjectAltName, value=
Size of certificate response is smaller than 500 characters, it means something went wrong. Printing response...
Then I tried the 'old' way (https://help.directadmin.com/item.php?id=645) which is what I have been doing up until now on my servers:
ATTEMPT 3:
scripts]# ./letsencrypt.sh request hostname.domain.tld 4096 /usr/local/directadmin/conf/ca.san_config
Getting challenge for hostname.domain.tld from acme-server...
Waiting for domain verification...
Challenge is valid.
Getting challenge for mail.hostname.domain.tld from acme-server...
Waiting for domain verification...
Challenge is valid.
Generating 4096 bit RSA key for hostname.domain.tld...
openssl genrsa 4096 > "/usr/local/directadmin/data/users/admin/domains/hostname.domain.tld.key.new"
Generating RSA private key, 4096 bit long modulus
...............................................++
......................................................++
e is 65537 (0x10001)
Size of certificate response is smaller than 500 characters, it means something went wrong. Printing response...
Any thoughts on what could be causing this problem and/or how I could move to fixing it? Could it be linked to the new version of Lets Encrypt, or is it specific to the fact that the VMs are clones? Is there another issue at play?
Thank you and kind regards,
Harro
UPDATE:
In the shell there was no clarification of the error, but in the message system it did show the actual error message:
Size of certificate response is smaller than 500 characters, it means something went wrong. Printing response...
"detail": "Error creating new cert :: Too many certificates already issued for exact set of domains: mail.hostname.domain.tld, hostname.domain.tld
Could that ultimately be the cause (strange error reporting on the command line, though)? How long will I need to wait before I can make a new request?
Last edited: