# Connection error when creating certificate

**URL:** <https://community.letsencrypt.org/t/connection-error-when-creating-certificate/135356>\
**Category:** Help\
**Created:** [October 6, 2020, 11:20am UTC](https://community.letsencrypt.org/t/connection-error-when-creating-certificate/135356 "2020-10-06T11:20:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![viewportdesign](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@viewportdesign](https://community.letsencrypt.org/u/viewportdesign)\
**Post date:** [October 6, 2020, 11:20am UTC](https://community.letsencrypt.org/t/connection-error-when-creating-certificate/135356/1 "2020-10-06T11:20:07Z")

</div>

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. [https://crt.sh/?q=example.com](https://crt.sh/?q=example.com)), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:oiltest24.de

I ran this command:sudo certbot --apache -d [oiltest24.de](http://oiltest24.de) -d [www.oiltest24.de](http://www.oiltest24.de)

It produced this output:  
Failed authorization procedure. [www.oiltest24.de](http://www.oiltest24.de) (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching [http://www.oiltest24.de/.well-known/acme-challenge/t-s0PqHOCypSpJnAR-slhhwZug1RTmYKDy1S8gTNN9Y:](http://www.oiltest24.de/.well-known/acme-challenge/t-s0PqHOCypSpJnAR-slhhwZug1RTmYKDy1S8gTNN9Y:) Timeout during connect (likely firewall problem)

IMPORTANT NOTES:

- The following errors were reported by the server:

My web server is (include version):apache2 Version 2.4.29

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

My hosting provider, if applicable, is:unknown

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

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):no

The version of my client is (e.g. output of `certbot --version` or `certbot-auto --version` if you're using Certbot):0.31.0

---

<div class="post-metadata">

**Author:** ![Osiris](https://avatars.discourse-cdn.com/v4/letter/o/839c29/32.png) [@Osiris](https://community.letsencrypt.org/u/Osiris)\
**Post date:** [October 6, 2020, 11:36am UTC](https://community.letsencrypt.org/t/connection-error-when-creating-certificate/135356/2 "2020-10-06T11:36:08Z")

</div>

You've got two IP addresses configured for your domain (same goes for the `www` subdomain):

```auto
oiltest24.de. 86400	IN	A	89.22.111.88
oiltest24.de. 86400	IN	A	89.22.115.142

```

For the IP address `89.22.111.88` I can connect to port 80 without a problem, but I _can't_ connect to `89.22.115.142` on port 80.

There's a 50&nbsp;% chance Let's Encrypt will choose either one of those IP addresses _per validation attempt_ and there are a multiple of validation attempts (also a few from secondary locations). So there's a pretty good chance the whole validation will fail.

Also, I don't know of both IP addresses are on the same server? Because even if you do manage to open up port 80 for `89.22.115.142`, if that's a different server than the server you're running certbot on, the challenge will fail too.

---

<div class="post-metadata">

**Author:** ![viewportdesign](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@viewportdesign](https://community.letsencrypt.org/u/viewportdesign)\
**Post date:** [October 6, 2020, 11:42am UTC](https://community.letsencrypt.org/t/connection-error-when-creating-certificate/135356/3 "2020-10-06T11:42:55Z")

</div>

Hi, you are right I honestly dont know why there is a second A record with the 89.22.115.142 IP, it shouldnt be there. I will have a look into the A records and try again. Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [November 5, 2020, 11:43am UTC](https://community.letsencrypt.org/t/connection-error-when-creating-certificate/135356/4 "2020-11-05T11:43:01Z")

</div>

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