# SSL renewal not working when authentication is active

**Project:** Sites | **Board:** Closed | **Votes:** 1
**URL:** https://roadmap.ploi.io/projects/2-site-level-requests/items/198-ssl-renewal-not-working-when-authentication-is-active

---

When I turn on user authentication, my SSL certificate can not be renewed. Also new ones cannot be created.

---

## Comments

**Dennis** (2022-08-09T05:18:08+00:00):
[@Denniskoch](/user/Denniskoch) Can you check if this file is present on your server?

```
/etc/nginx/ploi/yourdomain.com/server/disable-basic-auth-well-known.conf
```

(Replace yourdomain.com with the domain you're having issues with)

**Dennis Koch** (2022-08-09T07:21:06+00:00):
There is only a `auth.conf`. I checked another site which has the correct file in there.
I also tried removing auth and adding the user again, and removing SSL and adding a new certificate. Both worked but didn't create the corresponding conf file.

**Dennis** (2022-08-11T05:40:56+00:00):
Is that domain a fairly old domain created via Ploi? If you can, create that file I mentioned above with these contents and restart NGINX:

```
# This location allows the SSL requests and renewals by Certbot & Let's Encrypt to go through.
# If you're not comfortable with this setting, you may remove this file and restart NGINX.
location /.well-known/ {
	auth_basic off;
}
```

**Dennis Koch** (2022-08-16T18:17:16+00:00):
The domain shouldn't be that old. Less than half a year.
Copied that file over from another site.

**Dennis** (2022-09-23T06:49:55+00:00):
Is it possible for you to try or test this again with a fresh domain (or testing subdomain)? It should've been fixed by now.

