Ok, I installed certbot and attempted to perform DNS challenge instead of the HTTP challenge. I had also setup an AWS user who has access to change record sets in Route-53. Then I setup those credentials in ubuntu VM to be used by certbot.
But now, I get this error:
DNS problem: NXDOMAIN looking up TXT for
_acme-challenge.nithyasanghachat.org
Is there anything else that I need to do in AWS Route-53 config for the DNS challenge to succeed?
This was the output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Found credentials in shared credentials file: ~/.aws/credentials
Plugins selected: Authenticator dns-route53, Installer None
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for nithyasanghachat.org
dns-01 challenge for nithyasanghachat.org
Waiting for verification...
Cleaning up challenges
Failed authorization procedure. nithyasanghachat.org (dns-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.nithyasanghachat.org, nithyasanghachat.org (dns-01): urn:ietf:params:acme:error:dns :: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.nithyasanghachat.org
IMPORTANT NOTES:
The following errors were reported by the server:
Domain: nithyasanghachat.org
Type: None
Detail: DNS problem: NXDOMAIN looking up TXT for
_acme-challenge.nithyasanghachat.org
Domain: nithyasanghachat.org
Type: None
Detail: DNS problem: NXDOMAIN looking up TXT for
_acme-challenge.nithyasanghachat.org
Wow, I dont know why Route-53 registrar created one more HostedZone, while I was creating one.
In any case, I deleted the HostedZone in whose config I kept adding recordsets.
Now when I ran the same command, my certificate got created. Yay!!!
Thanks for that valuable pointer.