Manual certonly with apache2 Auth Basic enabled: How to send creds?



I am running certbot-auto on a utility server and am generating all certs using --manual.
For most web servers, this works fine by placing the file in .well-known/acme-challenge.
However several of my web servers utiliize basic auth from .htpasswd.
I can’t disable this, and really can’t stop the web server. I also don’t want to install certbot locally as Debian installs a ton of cruft that I don’t want on the web servers.

How can I send basic auth credentials, or how can I create the certificate otherwise?



I found the solution:

I added a .htaccess files to the .well-known/acme-challenge directory with the contents:

Satisfy any

This allowed LE to connect without authenticating and complete the transaction.


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