# LetsEncrypt SSL - Error

**URL:** <https://forum.virtualmin.com/t/letsencrypt-ssl-error/106278>\
**Category:** Virtualmin\
**Created:** [June 22, 2020, 3:47pm UTC](https://forum.virtualmin.com/t/letsencrypt-ssl-error/106278 "2020-06-22T15:47:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dibs](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@Dibs](https://forum.virtualmin.com/u/Dibs)\
**Post date:** [June 22, 2020, 3:47pm UTC](https://forum.virtualmin.com/t/letsencrypt-ssl-error/106278/1 "2020-06-22T15:47:36Z")

</div>

I’m running

- Ubuntu 18.04
- Virtualmin 6.09.gpl
- Apache 2.4.29
- Webmin 1.942

I’ve added a new Virtual Server - only enabling

- Apache Website
- Apache SSL Website

Uploaded the content (static) into public\_html and it is viewable. HTTPS gives the usual complaint about an untrusted cert (self signed out of the box).

Selecting the Virtual Server in Virtualmin and going to Server Configuration \>\> SSL Certificate - the Current Certificate tab confirms it’s a self signed one. Going to the Let’s Encrypt tab and clicking the Request Certificate button, leaving everything default (it says it’s requesting a cert for [www.myDomain.com](http://www.myDomain.com) & [myDomain.com](http://myDomain.com)) I get the following error:

> Requesting a certificate for [myDomain.com](http://myDomain.com), [myDomain.com](http://myDomain.com) from Let’s Encrypt …  
> … request failed : Web-based validation failed : Failed to request certificate :  
> 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/myDomain/public\_html/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo, but couldn’t download [http://myDomain.com/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo:](http://myDomain.com/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo:) Error:  
> Url: [http://myDomain.com/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo](http://myDomain.com/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo)  
> Data: None  
> Response Code: 404  
> Response:
> 
> 404 Not Found
> # Not Found
> 
> The requested URL was not found on this server.

If I browse to [http://myDomain.com/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo](http://mydomain.com/.well-known/acme-challenge/Rrn05Lgbli6nKn-1rYa6Zq9hBJMkVGx8KMK5fqQLnqo) there is nothing there.

I did set Yes for Redirect HTTP to HTTPS Server Configfuration \>\> Website Options. Setting it back to No - still got the same error.

I created the file manually and the cert request succeeded. But I don’t want to be creating this file manually for the other Virtual Servers.

Anyone any thoughts\suggestions?

Thanks in advance

Dibs

---

<div class="post-metadata">

**Author:** ![rkan](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/eada6e/32.png) [@rkan](https://forum.virtualmin.com/u/rkan)\
**Post date:** [June 22, 2020, 7:05pm UTC](https://forum.virtualmin.com/t/letsencrypt-ssl-error/106278/2 "2020-06-22T19:05:03Z")

</div>

Hi Dibs - this may not your issue, but I remember seeing something like this when dns servers where not yet resolved. If you haven’t done so already, perhaps check [https://dnschecker.org/](https://dnschecker.org/) to see if the dns is populated in your part of the world. If you see it resolved, you can try the Let’s Encrypt again and it should work.

---

<div class="post-metadata">

**Author:** ![Dibs](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@Dibs](https://forum.virtualmin.com/u/Dibs)\
**Post date:** [June 22, 2020, 7:10pm UTC](https://forum.virtualmin.com/t/letsencrypt-ssl-error/106278/3 "2020-06-22T19:10:49Z")

</div>

@rkan - appreciate the reply. In all fairness, I am moving sites from one host (vps) to another and did change the external DNS records beforehand. I also check on one of the DNS propagation websites and everything looked OK.

I’m moving another site now - but did the DNS changes as soon as I could. If I get the same error - I might leave it a few hours and see what happens.

Thanks

Dibs

---

<div class="post-metadata">

**Author:** ![OliverF](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/o/ce73a5/32.png) [@OliverF](https://forum.virtualmin.com/u/OliverF)\
**Post date:** [June 22, 2020, 9:49pm UTC](https://forum.virtualmin.com/t/letsencrypt-ssl-error/106278/4 "2020-06-22T21:49:19Z")

</div>

Just in case: In [.. request failed : Web-based validation failed : Failed to request certificate](https://forum.virtualmin.com/t/request-failed-web-based-validation-failed-failed-to-request-certificate/106238/6) , I mentioned 2 situations in which I had that kind of error and how they were fixed in my case. I don’t think it’s your own case, but hey, it can’t hurt to mention it.

---

<div class="post-metadata">

**Author:** ![Dibs](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/d/ea666f/32.png) [@Dibs](https://forum.virtualmin.com/u/Dibs)\
**Post date:** [June 22, 2020, 10:47pm UTC](https://forum.virtualmin.com/t/letsencrypt-ssl-error/106278/5 "2020-06-22T22:47:58Z")

</div>

@OliverF - Thanks for the reply. On moving the 2nd site\domain\Virtual Server, I left it a little longer.

Did the noddy stuff - created the VS (http only), placed a test html file there, viried it worked, placed the content in public\_html, verified it displayed, then enabled SSL, tested it (expecting the self signed issue) and then hit the button for a LE SSL cert and lo and behold - no error.

I think @rkan was right - DNS propagation might have been the underlying cause (even tho a few sites to check it were showing OK, but without knowing what DNS servers LE use - hard to know).

Thanks guys!

Dibs

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [June 26, 2020, 10:50pm UTC](https://forum.virtualmin.com/t/letsencrypt-ssl-error/106278/6 "2020-06-26T22:50:57Z")

</div>

Closed on June 26, 2020, 10:50pm UTC

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