# Getting 404 forbidden error when writing to /.well-known

**URL:** <https://community.certifytheweb.com/t/getting-404-forbidden-error-when-writing-to-well-known/2110>\
**Category:** Uncategorized\
**Created:** [November 15, 2023, 12:09am UTC](https://community.certifytheweb.com/t/getting-404-forbidden-error-when-writing-to-well-known/2110 "2023-11-15T00:09:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ray4x4x4](https://community.certifytheweb.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@ray4x4x4](https://community.certifytheweb.com/u/ray4x4x4)\
**Post date:** [November 15, 2023, 12:09am UTC](https://community.certifytheweb.com/t/getting-404-forbidden-error-when-writing-to-well-known/2110/1 "2023-11-15T00:09:38Z")

</div>

I see that the file begins to write in that folder, but then deletes. Then gives a 404 error that it is forbidden from writing. If it can create the file then obviously it should be able to have access.

I now am getting an API error, saying that too may attempts have been made. How do I clear both issues?

---

<div class="post-metadata">

**Author:** ![webprofusion](https://community.certifytheweb.com/user_avatar/community.certifytheweb.com/webprofusion/32/4_2.png) [@webprofusion](https://community.certifytheweb.com/u/webprofusion)\
**Post date:** [November 15, 2023, 3:39am UTC](https://community.certifytheweb.com/t/getting-404-forbidden-error-when-writing-to-well-known/2110/2 "2023-11-15T03:39:07Z")

</div>

Hi Ray,

The validation process by default uses an http challenge server process instead of IIS, so although the files may be being created in the folder in most cases they aren’t used, unless port 80 is busy with something that’s _not_ IIS (like apache or nginx).

Too many attempts is unusual but that limit is set by the certificate authority, which by default is Let’s Encrypt [Rate Limits - Let's Encrypt](https://letsencrypt.org/docs/rate-limits/)

Start by getting http (over tcp port 80) to work on your server, then use the “Test” button to check that it resolves OK. Our test should check both via our (certifytheweb) API and resolving locally (from your own machine). You can also try [https://letsdebug.net/](https://letsdebug.net/)

The key thing with http validation is to have port 80 open at both the windows firewall and any cloud networking control panel/router that applies to your machine. Also make sure that the public IP of your domain really does point to the server that’s running Ceritfy.

---

<div class="post-metadata">

**Author:** ![ray4x4x4](https://community.certifytheweb.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@ray4x4x4](https://community.certifytheweb.com/u/ray4x4x4)\
**Post date:** [November 15, 2023, 8:47pm UTC](https://community.certifytheweb.com/t/getting-404-forbidden-error-when-writing-to-well-known/2110/3 "2023-11-15T20:47:47Z")

</div>

[Letsdebug.net](http://Letsdebug.net) does not indicate an issue. Neither does the “Test” button indicate any issue. The only thing that fails is the certificate routine.

---

<div class="post-metadata">

**Author:** ![webprofusion](https://community.certifytheweb.com/user_avatar/community.certifytheweb.com/webprofusion/32/4_2.png) [@webprofusion](https://community.certifytheweb.com/u/webprofusion)\
**Post date:** [November 16, 2023, 12:08am UTC](https://community.certifytheweb.com/t/getting-404-forbidden-error-when-writing-to-well-known/2110/4 "2023-11-16T00:08:05Z")

</div>

Ok, please share your log file for the managed certificate that’s not working.

---

<div class="post-metadata">

**Author:** ![ray4x4x4](https://community.certifytheweb.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@ray4x4x4](https://community.certifytheweb.com/u/ray4x4x4)\
**Post date:** [November 17, 2023, 5:36pm UTC](https://community.certifytheweb.com/t/getting-404-forbidden-error-when-writing-to-well-known/2110/5 "2023-11-17T17:36:36Z")

</div>

![image](https://community.certifytheweb.com/uploads/default/original/1X/b1de0212d9ead90174991f1edf7b483d02ea63e5.png)

---

<div class="post-metadata">

**Author:** ![ray4x4x4](https://community.certifytheweb.com/letter_avatar_proxy/v4/letter/r/41988e/32.png) [@ray4x4x4](https://community.certifytheweb.com/u/ray4x4x4)\
**Post date:** [November 17, 2023, 5:52pm UTC](https://community.certifytheweb.com/t/getting-404-forbidden-error-when-writing-to-well-known/2110/6 "2023-11-17T17:52:28Z")

</div>

OK found the issue. DNS was pointing was off. It happened to be hitting another port 80 site. So the initial checks and tests were successful but not the final writing.

---

<div class="post-metadata">

**Author:** ![webprofusion](https://community.certifytheweb.com/user_avatar/community.certifytheweb.com/webprofusion/32/4_2.png) [@webprofusion](https://community.certifytheweb.com/u/webprofusion)\
**Post date:** [November 20, 2023, 8:21am UTC](https://community.certifytheweb.com/t/getting-404-forbidden-error-when-writing-to-well-known/2110/7 "2023-11-20T08:21:27Z")

</div>

Great, so it wasn’t a permission problem writing to the file, the 404 error was just the certificate authority telling you it couldn’t find the challenge response on the server at that domain (an http 404 not found error). The “unauthorized” part is their way of saying the domain was not validated,
