Some challenges have failed - Godaddy domain forwarded ( redirected ) to aws

Dear All,

I am getting AuthorizationError(‘Some challenges have failed.’) while creating SSL certificate.

Note I have purchased a domain from GoDaddy & I am running apache webserver on aws elastic beanstalk. I have forwarded elastic beanstalk URL from GoDaddy with ‘forward with mask’.

this is the first time I am using Iet’sEncrypt so please help me resolving this issue.

Refer the following details :

I ran this command:
sudo /opt/certbot/certbot-auto certonly --debug --non-interactive --email --agree-tos --standalone --domains --keep-until-expiring --pre-hook “service httpd stop” --staging

It produced this output:

raise errors.AuthorizationError(‘Some challenges have failed.’)
2020-07-14 02:13:59,518 P3375 [INFO] AuthorizationError: Some challenges have failed.
2020-07-14 02:13:59,518 P3375 [INFO] Please see the logfiles in /var/log/letsencrypt for more details.
2020-07-14 02:13:59,519 P3375 [INFO] IMPORTANT NOTES:
2020-07-14 02:13:59,519 P3375 [INFO] - The following errors were reported by the server:
2020-07-14 02:13:59,519 P3375 [INFO]
2020-07-14 02:13:59,519 P3375 [INFO] Domain:
2020-07-14 02:13:59,519 P3375 [INFO] Type: connection
2020-07-14 02:13:59,519 P3375 [INFO] Detail: Fetching
2020-07-14 02:13:59,519 P3375 [INFO]
2020-07-14 02:13:59,519 P3375 [INFO] Timeout during connect (likely firewall problem)
2020-07-14 02:13:59,519 P3375 [INFO]
2020-07-14 02:13:59,519 P3375 [INFO] To fix these errors, please make sure that your domain name was
2020-07-14 02:13:59,519 P3375 [INFO] entered correctly and the DNS A/AAAA record(s) for that domain
2020-07-14 02:13:59,519 P3375 [INFO] contain(s) the right IP address. Additionally, please check that
2020-07-14 02:13:59,519 P3375 [INFO] your computer has a publicly routable IP address and that no
2020-07-14 02:13:59,519 P3375 [INFO] firewalls are preventing the server from communicating with the
2020-07-14 02:13:59,520 P3375 [INFO] client. If you’re using the webroot plugin, you should also verify
2020-07-14 02:13:59,520 P3375 [INFO] that you are serving files from the webroot path you provided.
2020-07-14 02:13:59,520 P3375 [INFO] - Your account credentials have been saved in your Certbot
2020-07-14 02:13:59,520 P3375 [INFO] configuration directory at /etc/letsencrypt. You should make a
2020-07-14 02:13:59,520 P3375 [INFO] secure backup of this folder now. This configuration directory will
2020-07-14 02:13:59,520 P3375 [INFO] also contain certificates and private keys obtained by Certbot so
2020-07-14 02:13:59,520 P3375 [INFO] making regular backups of this folder is ideal.
2020-07-14 02:13:59,520 P3375 [INFO] ------------------------------------------------------------
2020-07-14 02:13:59,520 P3375 [ERROR] Exited with error code 1

My web server is (include version):
Apache 2.4.43 with mod_wsgi 3.5

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:
64bit Amazon Linux 2018.03 v2.9.12 running Python 3.6

I can login to a root shell on my machine (yes or no, or I don’t know):yes


Hi @gaurav

that may be wrong.

Your domain name is required to check that.

1 Like

Dear @JuergenAuer Thanks for your reply …

I am not getting what do you mean by "it may be wrong " ? please elaborate.

So what should be the solution or way to create SSL with the given setup?

You literally force the http service to stop before running certbot and fail to see why the site times out.

In addition, as @JuergenAuer pointed out, URL forwarding by GoDaddy will most likely fail.

1 Like

As the above method (challenge http) will fail so i decided to go with DNS challenge.
But still after many attempts no success. Request you to clarify the following points

  1. I am trying to generate a certificate from my development pc for my server through DNS challenge. Is it OK ?

By running manual mode i got following details ( domain )

Running manual-auth-hook command: /etc/letsencrypt/
Output from manual-auth-hook command
Please add the following CNAME record to your main DNS zone: CNAME

Running manual-auth-hook command: /etc/letsencrypt/
Output from manual-auth-hook command
Please add the following CNAME record to your main DNS zone: CNAME

Note: the above data is an old one when validation failed. I have now created & updated DNS record with fresh values.

  1. do I need to create CNAME record or TXT record ? as in many online tutorials & forums used TXT record.

  2. which is the correct way to add CNAME or just _acme-challenge or _acme-challenge.www

  3. How should I know that the above records are ready to validate?


1 Like

There is a check of your domain, created yesterday -

Host Type IP-Address is auth. ∑ Queries ∑ Timeout A Scottsdale/Arizona/United States (US) -, LLC Hostname: yes 2 0
AAAA yes CNAME yes 1 0

That can’t work, the result: No GZip used - 442 / 480 - 92,08 % possible
Inline-JavaScript (∑/total): 0/0 Inline-CSS (∑/total): 0/0	200
Html is minified: 104,58 %	0.343
Visible Content: 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ""> LogicsAndYou

Info: Html-Content with frame found, may be a problem creating a Letsencrypt certificate using http-01 validation

<html> <head> <title>LogicsAndYou</title> <meta name="description" content="Online Courses"> 
<meta name="keywords" content="Online Courses"> </head> 
<frameset rows="100%,*" border="0"> 
<frame src="" frameborder="0" /> </frameset> </html> 

Use the ip of

in your dns A record, not the GoDaddy ip.

Such frames can’t work, because Letsencrypt checks the GoDaddy ip, not your webserver.

1 Like

Thanks @JuergenAuer for your quick reply .Request you to clarify above points

1 Like

TXT type record.

Don’t use CNAME for this.

1 Like

which is the correct way to add TXT record ? or just _acme-challenge or _acme-challenge.www

1 Like

That depends entire on the interface.
Some will append whatever you enter to your domain.
So that, when you enter:
it may actually become:
Some are “smart enough” to correct that.
I would try adding the short name first:
And see if was created as you expected.

I can’t say for sure what will happen in your DNS control interface.

1 Like

As suggested I have change DNS A record & created TXT in DNS … but still updates not reflected yet …
I will wait till tomorrow & reply the result .

This is NOT how the TXT record is expected to be:        text =

1 Like

I have added TXT record as follows

NAME as – > _acme-challenge
Value as —>

What’s wrong in this ?

What were the instructions?

It should probably be just:

1 Like

certbot command gave the following data

Running manual-auth-hook command: /etc/letsencrypt/
Output from manual-auth-hook command
Please add the following CNAME record to your main DNS zone: CNAME

Running manual-auth-hook command: /etc/letsencrypt/
Output from manual-auth-hook command
Please add the following CNAME record to your main DNS zone: CNAME

Also let me know whether we need to keep “.” at the end ( …**.**)

1 Like

I’ve never seen it ask for that.
that would mean that you need to create a CNAME (not a TXT) record with that info in it.

The dot at the end tries to ensure that the name won’t be appended to anything else.
So, yes, keep the dot at the end.

On re-reading the thread I think you may be following some outdated (or overly complicated) instructions to get a cert.

1 Like

I am referring following link

1 Like

Do you need a wildcard cert?
Or is there any other reason to get your certs using this method?
[this is a very manual process - you should only do it this way if you absolutely have to]

1 Like

Actually not , but preferred this as I missed to change A record & instead used forwarding / redirecting method that causing failure in getting SSL cert. I will try once again for HTTP challenge .

1 Like

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