# \[Resolved\] FailedChallenges: Failed authorization procedure

**URL:** <https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621>\
**Category:** Server\
**Created:** [May 11, 2016, 4:23pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621 "2016-05-11T16:23:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 4:23pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/1 "2016-05-11T16:23:57Z")

</div>

Hi all,

Sorry, I'm a bit lost as I'am not familiar with network stuff and I'm facing an issue when I try to use letsencrypt that I don't understand well.

I'm going to prepare a new server which will only respond to https urls.  
As this server is not opened for public for the time being, I obviously had to open some ports using iptables.  
I then opened ports 80 and 443 for all sources to my destination.  
The port 80 is redirected to 443 by tha apache directive virtualhost using : Redirect 301 / https://my\_site.fr

When I use :

> ./letsencrypt-auto --test-cert --apache --domain my\_site.fr

i get the following error message :

> FailedChallenges: Failed authorization procedure. my\_site.fr (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Failed to connect to host for DVSNI challenge  
> IMPORTANT NOTES:
> 
> - The following errors were reported by the server:  
> Domain: my\_site.fr  
> Type: connection  
> Detail: Failed to connect to host for DVSNI challenge

The A DNS entry seems to be ok (DNS is an OVH one), I can connect to that server from home using its fqdn :

> $ dig A my\_site.fr  
> ; \<\<\>\> DiG 9.9.5-9+deb8u6-Debian \<\<\>\> A my\_site.fr  
> ;; global options: +cmd  
> ;; Got answer:  
> ;; -\>\>HEADER\<\<- opcode: QUERY, status: NOERROR, id: 20201  
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

> ;; OPT PSEUDOSECTION:  
> ; EDNS: version: 0, flags:; udp: 4096  
> ;; QUESTION SECTION:  
> ;my\_site.fr. IN A

> ;; ANSWER SECTION:  
> my\_site.fr. 3600 IN A 176.xxx.xxx.xxx

My apache config is  
site-enabled/msg\_80.conf

> ServerAdmin root@my\_site.fr ServerName my\_site.fr Redirect 301 / https://my\_site.fr/

site-enabled/site\_msg.conf

> ServerName my\_site.fr ServerAdmin root@localhost ServerSignature Off DocumentRoot /var/www SSLEngine on SSLCertificateFile /etc/ssl/certs/msg\_server.crt SSLCertificateKeyFile /etc/ssl/private/msg\_server.key .... snip ....

Apache is well listening on 443

> netstat -tulpn | grep :443  
> tcp6 0 0 :::443 :::\* LISTEN 32020/apache2

Anyone could show me were I missed something ?  
Thanks  
Philippe

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [May 11, 2016, 4:40pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/2 "2016-05-11T16:40:45Z")

</div>

Hi Philippe

Are you happy to provide your domain name ? so we can check basic DNS checks etc ?

I’d suggest you try adding a test file in /domainroot/.well-known/acme-challenge/text with just some simple text in it. Then check that you can reach that file from the general internet, and that it’s presented as clear text.

---

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 4:46pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/3 "2016-05-11T16:46:23Z")

</div>

Hi Serveco,

thanks for a so quick response 😄 The domain name is my\_site.fr  
I’m going to find a way to try your suggestion but I need an other network. My own ip-adress, and only this one, is always authorized by my fw rules

I also notice that my fw logs even don’t show any try from external connections when letsencrypt was run

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [May 11, 2016, 4:57pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/4 "2016-05-11T16:57:03Z")

</div>

If you call the file “test” I will also check from my location.

The DNS response I got from your nameserver ( [dns111.ovh.net](http://dns111.ovh.net) ) was slow responding, but it did respond correctly to the challenges that LE would give.

Your website isn’t responding for me - so it may be a firewall issue

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [May 11, 2016, 4:59pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/5 "2016-05-11T16:59:34Z")

</div>

Can you see anything on your firewall logs from my IP - 69…

---

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 4:59pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/6 "2016-05-11T16:59:47Z")

</div>

for the time being, the ports 80 and 443 are closed. Would you like me to open them a while for your tests ?  
I also created the text file

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [May 11, 2016, 5:01pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/7 "2016-05-11T17:01:12Z")

</div>

You will need to open them up ( at least in the .well-known/acme-challenge folder) in order for letsencrypt to verify you have control of the domain, so yes please

---

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 5:02pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/8 "2016-05-11T17:02:06Z")

</div>

Nope, there is no connection from [69.xxx](http://69.xxx)  
I need to see what are my rules …

---

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 5:04pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/9 "2016-05-11T17:04:22Z")

</div>

I did it when I ran letsencrypt.  
Now I just opened them for you

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [May 11, 2016, 5:06pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/10 "2016-05-11T17:06:42Z")

</div>

Thanks - I can access now - from a quick check I’m seeing a certificate error with your existing cert … looking

---

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 5:06pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/11 "2016-05-11T17:06:46Z")

</div>

Ok I can see you now in FW logs

---

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 5:07pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/12 "2016-05-11T17:07:28Z")

</div>

It was my first tests with an auto signed certificat

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [May 11, 2016, 5:08pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/13 "2016-05-11T17:08:28Z")

</div>

Did you create a file “test” in .well-known/acme-challenge ? I’m getting a The requested URL /.well-known/acme-challenge/test was not found on this server. error

---

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 5:09pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/14 "2016-05-11T17:09:08Z")

</div>

root@server:/var/www/.well-known/acme-challenge# ls -ali  
total 12  
263116 drwxr-xr-x 2 msg www-data 4096 mai 11 18:53 .  
262960 drwxr-xr-x 3 msg www-data 4096 mai 11 18:52 …  
263153 -rw-r----- 1 msg www-data 33 mai 11 18:53 text

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [May 11, 2016, 5:11pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/15 "2016-05-11T17:11:11Z")

</div>

ahh, “text” and “test” 🙂

Yes, that works fine, and was delivered as plain text. So everything looks OK on that.

For the first certificate it may be as well to use “standalone mode” since that will create an SSL cert that LE is happy with and provide you with a full certificate.

---

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 5:12pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/16 "2016-05-11T17:12:42Z")

</div>

oooops ! sorry for this mistake !!

do you mean that I have to use an other syntax with letsencrypt with the standalone flag  
?

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [May 11, 2016, 5:16pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/17 "2016-05-11T17:16:23Z")

</div>

No problem, could just as easily have been me 🙂

Shutting down your apache and using letsencrypt with the standalone flag is probably the easiest, yes.

Alternatively, we can look at correcting issues with your existing SSL cert or whatever the issue is there.

---

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 5:20pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/18 "2016-05-11T17:20:13Z")

</div>

Well, I think it is better to go on with letsencrypt. The current certificat is auto-signed so I don’t think it is usable anymore as I would like avoid that users who connect to the site get “this site is not trusted …”

---

<div class="post-metadata">

**Author:** ![serverco](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/serverco/32/4251_2.png) [@serverco](https://community.letsencrypt.org/u/serverco)\
**Post date:** [May 11, 2016, 5:21pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/19 "2016-05-11T17:21:56Z")

</div>

Understood. Hence that’s probably the quickest way. Once you have the certificate you can then close down your firewall again.

---

<div class="post-metadata">

**Author:** ![PhLinuX](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/phlinux/32/7277_2.png) [@PhLinuX](https://community.letsencrypt.org/u/PhLinuX)\
**Post date:** [May 11, 2016, 5:24pm UTC](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621/20 "2016-05-11T17:24:25Z")

</div>

Ok… I hope this will be ok also for me as I don’t still know what causes that error…  
anyway thousand of thanks for your kind help

[Next page](https://community.letsencrypt.org/t/resolved-failedchallenges-failed-authorization-procedure/15621.md?page=2)
