Can't create certificate


#1

dear All,

i run command and here is output
sudo certbot --nginx -d demo.tooliserver.com -d www.demo.tooliserver.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for demo.tooliserver.com
http-01 challenge for www.demo.tooliserver.com
Using default address 80 for authentication.
Waiting for verification…
Cleaning up challenges
Failed authorization procedure. www.demo.tooliserver.com (http-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up A for www.demo.tooliserver.com

IMPORTANT NOTES:

ping demo.tooliserver.com
PING demo.tooliserver.com (40.115.13.239) 56(84) bytes of data.


#2

Currently you only have an A record for demo.tooliserver.com but not for www.demo.tooliserver.com. If you want to use (and get a certificate for) both names, you’ll need to have DNS records for both.

If you don’t want to use the www version, omit it from the certbot command and just run:

sudo certbot --nginx -d demo.tooliserver.com


#3

thx bro 4 ur support