I am trying to create a Let's Encrypt certificate for PgBouncer. Not a website.
Is it even possible to create a cert for PgBouncer separately?
How do I create a DNS challenge separately?
The problem is that my website has a redirect for all incoming calls that NOT is a "valid page".
This seems to make certbot confused and hence refuse to create a certificate or DNS challenge.
Invalid response from https://adjob.se/hacker: "<!DOCTYPE html>\n<html lang=\"en\">
A desktop client accessing Postgresql. And I plan to use PgBouncer in front of Postgresql. So on this VPS there is nothing else than the database and PgBouncer.
My main question was if Let's Encrypt works for PgBouncer?
I do not know what the domain has to do with this - other than verifying.
A cert is needed for the TLS connection. A Let's Encrypt cert is only issued for publicly validated domain names. An LE cert is intended for TLS clients to validate they are talking with the intended server.
If you don't need a domain validated cert couldn't you just use a self-signed cert?
You'd have to ask the PgBouncer people for the specifics of any cert specs they require. I didn't see anything unusual in their docs but I just skimmed them. I'd say "almost certainly" but the question lacks detail