Unable to install letsencrypt on aws ec2 centos server

I tried finding solutions on this issue in your forum’s earlier asked questions, but could not find one. Server is hosted on AWS EC2 with Centos 7 OS and Apache web server. We tried installing letsencrypt ssl certificate on two of our domains using certbot command on our putty cli, but failed.

We installed certbot lib on our server and thereafter ran certbot --apache to install the letsencrypt ssl certificate on our domain:mbracecloud.com, but the following error showed up.

Domain: mbracecloud.com
Type: unauthorized
Detail: The key authorization file from the server did not match
this challenge

To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.

How shall we overcome this.

It looks like you succesfully got a certificate for that hostname this morning.

Well it seems right, but our domain: http://mbracecloud.com is not working as https now. You can check it now. I’m not sure where i’m going wrong. Help would be appreciated.

The HTTPS version - https://mbracecloud.com/ works just fine for me.

In any case, that domain is hosted by an nginx server. Running certbot --apache isn’t going to do any good.

Its working. Thanks for the help. By the way, how do we make sure we renew our ssl certificate before it expires.

Depending on how you installed certbot there’s already a systemd timer or cronjob set up or you need to add a systemd timer or cronjob with certbot renew.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.