# Unable to renew certificates

**URL:** <https://community.letsencrypt.org/t/unable-to-renew-certificates/115747>\
**Category:** Help\
**Created:** [March 7, 2020, 6:11pm UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747 "2020-03-07T18:11:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![suhayls](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@suhayls](https://community.letsencrypt.org/u/suhayls)\
**Post date:** [March 7, 2020, 6:11pm UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/1 "2020-03-07T18:11:06Z")

</div>

My domain is: [symworld.com](http://symworld.com)

I ran this command: Tried to renew SSL Cert using virtualmin’s interface

It produced this output:  
Traceback (most recent call last):  
File “/usr/share/webmin/webmin/acme\_tiny.py”, line 198, in   
main(sys.argv[1:])  
File “/usr/share/webmin/webmin/acme\_tiny.py”, line 194, in main  
signed\_crt = get\_crt(args.account\_key, args.csr, args.acme\_dir, log=LOGGER, CA=args.ca, disable\_check=args.disable\_check, directory\_url=args.directory\_url, contact=args.contact)  
File “/usr/share/webmin/webmin/acme\_tiny.py”, line 143, in get\_crt  
raise ValueError(“Wrote file to {0}, but couldn’t download {1}: {2}”.format(wellknown\_path, wellknown\_url, e))  
ValueError: Wrote file to /home/symworld.com/public\_html/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c, but couldn’t download [http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c:](http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c:) Error:  
Url: [http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c](http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c)  
Data: None  
Response Code: None  
Response: \<urlopen error [Errno 110] Connection timed out\>

My web server is (include version): Apache2 running on webmin/virtualmin

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

My hosting provider, if applicable, is:

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): webmin & virtualmin

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

---

<div class="post-metadata">

**Author:** ![suhayls](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@suhayls](https://community.letsencrypt.org/u/suhayls)\
**Post date:** [March 7, 2020, 6:14pm UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/2 "2020-03-07T18:14:23Z")

</div>

Checked my server access logs and seeing these records **after** the renewal has timed out:

65.19.128.70 - - [08/Mar/2020:02:12:29 +0800] “GET /.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c HTTP/1.1” 404 439 “-” “Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36”  
65.19.128.70 - - [08/Mar/2020:02:12:29 +0800] “GET /.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c: HTTP/1.1” 404 439 “-” “Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36”  
79.244.52.28 - - [08/Mar/2020:02:13:01 +0800] “GET /.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c HTTP/1.1” 404 495 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0”  
17.58.82.220 - - [08/Mar/2020:02:13:43 +0800] “GET /.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c: HTTP/1.1” 404 495 “-” “AppleNewsBot”  
17.58.82.220 - - [08/Mar/2020:02:13:43 +0800] “GET /.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c HTTP/1.1” 404 495 “-” “AppleNewsBot”  
17.58.80.10 - - [08/Mar/2020:02:13:59 +0800] “GET /.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c: HTTP/1.1” 404 495 “-” “AppleNewsBot”  
17.58.80.10 - - [08/Mar/2020:02:14:00 +0800] “GET /.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c HTTP/1.1” 404 495 “-” “AppleNewsBot”

---

<div class="post-metadata">

**Author:** ![JuergenAuer](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/juergenauer/32/26491_2.png) [@JuergenAuer](https://community.letsencrypt.org/u/JuergenAuer)\
**Post date:** [March 7, 2020, 7:35pm UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/3 "2020-03-07T19:35:05Z")

</div>

Hi @suhayls

> [@suhayls](#):
>
> ValueError: Wrote file to /home/symworld.com/public\_html/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c, but couldn’t download [http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c:](http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c:) Error:  
> Url: [http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c](http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c)  
> Data: None  
> Response Code: None  
> Response: \<urlopen error [Errno 110] Connection timed out\>

your client tries to check the validation file. But that doesn't work because of a timeout.

Why is there a timeout?

There is a check of your domain, ~~ 2 hours old - [https://check-your-website.server-daten.de/?q=symworld.com](https://check-your-website.server-daten.de/?q=symworld.com)

Same picture - fetching some resources -\> timeout.

And your nameserver `ns1.symworld.com` has the same ip address 103.230.125.235

Looks like a blocking instance, may be a firewall.

---

<div class="post-metadata">

**Author:** ![suhayls](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@suhayls](https://community.letsencrypt.org/u/suhayls)\
**Post date:** [March 8, 2020, 2:57am UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/4 "2020-03-08T02:57:51Z")

</div>

Hi Juergen, I’ve checked with my server administrator and apparently there are no special blocking on HTTP/S requests. What are the URL/IP used for querying the let’s encrypt? Maybe I can try to trace from the server if it is indeed being blocked.

---

<div class="post-metadata">

**Author:** ![JuergenAuer](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/juergenauer/32/26491_2.png) [@JuergenAuer](https://community.letsencrypt.org/u/JuergenAuer)\
**Post date:** [March 8, 2020, 7:38am UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/5 "2020-03-08T07:38:05Z")

</div>

> [@suhayls](#):
>
> What are the URL/IP used for querying the let’s encrypt?

Letsencrypt uses multi perspective validation:

> [@ACME v1/v2: Validating challenges from multiple network vantage points](https://community.letsencrypt.org/t/acme-v1-v2-validating-challenges-from-multiple-network-vantage-points/112253):
>
> O…

So you shouldn't block any ip address.

---

<div class="post-metadata">

**Author:** ![suhayls](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@suhayls](https://community.letsencrypt.org/u/suhayls)\
**Post date:** [March 9, 2020, 3:22am UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/6 "2020-03-09T03:22:53Z")

</div>

I have checked with my server and the provider, it doesn’t seem like any IPs/Domains are currently blocked. Would a domain validation work instead?

---

<div class="post-metadata">

**Author:** ![JuergenAuer](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/juergenauer/32/26491_2.png) [@JuergenAuer](https://community.letsencrypt.org/u/JuergenAuer)\
**Post date:** [March 9, 2020, 8:24am UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/7 "2020-03-09T08:24:33Z")

</div>

That's

> [@suhayls](#):
>
> ValueError: Wrote file to /home/symworld.com/public\_html/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c, but couldn’t download [http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c:](http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c:) Error:  
> Url: [http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c](http://www.symworld.com/.well-known/acme-challenge/gfgICDjtij3qwWDM0a4VF70fvTs5nPTf8kMaf7Vhb8c)  
> Data: None  
> Response Code: None  
> Response: \<urlopen error [Errno 110] Connection timed out\>

an error of your VirtualMin/WebMin. I don't know how that tool works.

May be a bug in that tool -\> check if there is an update.  
May be a bug in your configuration -\> no idea.

---

<div class="post-metadata">

**Author:** ![suhayls](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@suhayls](https://community.letsencrypt.org/u/suhayls)\
**Post date:** [March 10, 2020, 3:54am UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/8 "2020-03-10T03:54:35Z")

</div>

I’ve just tried to run the acme\_tiny.py from the command line but I get the same problem. See output below:

```
root@symworld:/home/symworld.com# python /usr/share/webmin/webmin/acme_tiny.py --account-key ssl.key --csr ssl.csr --acme-dir /home/symworld.com/public_html/.well-known/acme-challenge/ > ssl.crt
Parsing account key...
Parsing CSR...
Found domains: symworld.com, www.symworld.com
Getting directory...
Directory found!
Registering account...
Already registered!
Creating new order...
Order created!
Verifying symworld.com...
Traceback (most recent call last):
File "/usr/share/webmin/webmin/acme_tiny.py", line 196, in <module>
main(sys.argv[1:])
File "/usr/share/webmin/webmin/acme_tiny.py", line 192, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
File "/usr/share/webmin/webmin/acme_tiny.py", line 143, in get_crt
raise ValueError("Wrote file to {0}, but couldn't download {1}: {2}".format(wellknown_path, wellknown_url, e))
ValueError: Wrote file to /home/symworld.com/public_html/.well-known/acme-challenge/9_tYgJiVbK02okpb2WX1qOh5LlQmzC66GVvh-T8TRnY, but couldn't download http://symworld.com/.well-known/acme-challenge/9_tYgJiVbK02okpb2WX1qOh5LlQmzC66GVvh-T8TRnY: Error:
Url: http://symworld.com/.well-known/acme-challenge/9_tYgJiVbK02okpb2WX1qOh5LlQmzC66GVvh-T8TRnY
Data: None
Response Code: None
Response: <urlopen error [Errno 110] Connection timed out>

```

Also tested the URL and the file is valid and is accessible over HTTP/S.

---

<div class="post-metadata">

**Author:** ![9peppe](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/9peppe/32/31596_2.png) [@9peppe](https://community.letsencrypt.org/u/9peppe)\
**Post date:** [March 10, 2020, 9:34am UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/9 "2020-03-10T09:34:51Z")

</div>

you are serving http on port 443, that should be https.

does this link work for you?  
[http://www.symworld.com/.well-known/acme-challenge/9\_tYgJiVbK02okpb2WX1qOh5LlQmzC66GVvh-T8TRnY](http://www.symworld.com/.well-known/acme-challenge/9_tYgJiVbK02okpb2WX1qOh5LlQmzC66GVvh-T8TRnY)  
it redirects to [https://www.symworld.com/.well-known/acme-challenge/9\_tYgJiVbK02okpb2WX1qOh5LlQmzC66GVvh-T8TRnY](https://www.symworld.com/.well-known/acme-challenge/9_tYgJiVbK02okpb2WX1qOh5LlQmzC66GVvh-T8TRnY) and it complains a lot.

but this does work:  
[http://www.symworld.com:443/.well-known/acme-challenge/9\_tYgJiVbK02okpb2WX1qOh5LlQmzC66GVvh-T8TRnY](http://www.symworld.com:443/.well-known/acme-challenge/9_tYgJiVbK02okpb2WX1qOh5LlQmzC66GVvh-T8TRnY)

don’t serve http over port 443. serve https. the validation procedure will accept a self signed certificate. ([on ubuntu and probably debian, you should have a default snakeoil ready](https://wiki.debian.org/Self-Signed_Certificate) – or, well, there are websites that do that for you: [https://www.selfsignedcertificate.com/](https://www.selfsignedcertificate.com/))

---

<div class="post-metadata">

**Author:** ![suhayls](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@suhayls](https://community.letsencrypt.org/u/suhayls)\
**Post date:** [March 10, 2020, 5:47pm UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/10 "2020-03-10T17:47:29Z")

</div>

I deleted all the SSL sites on the server and recreated them. That solved the issue and all the certs have been successfully renewed.

Thanks for your help and input.

Cheers!

---

<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:** [April 9, 2020, 5:47pm UTC](https://community.letsencrypt.org/t/unable-to-renew-certificates/115747/11 "2020-04-09T17:47:34Z")

</div>

Closed on April 9, 2020, 5:47pm UTC

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