Closed petre-c closed 2 years ago
I can telnet to port 443 on barbarosa.ge
and HTTP://barbarosa.ge is accessible
I assume this is the problem:
h.ClientCertificateMode = ClientCertificateMode.RequireCertificate;
This is configuring your server to require Let's Encrypt to connect to your server using a client certificate, but they don't have one, so they can't verify domain ownership in order to issue you a server certificate.
Try using Http01
instead https://github.com/natemcmaster/LettuceEncrypt#changing-which-challenge-types-are-used
Oh, that is good to know!
Actually, I copied that from here - https://github.com/natemcmaster/LettuceEncrypt/blob/cd68f74586f2aba4dce1d25db4762de1457ee65f/samples/Web/Program.cs#L34
I ended up obtaining certificates using a certbot
on the host machine and supplied certificates to the docker container via mounts.
I'll close the issue for now and reopen it as needed.
Thank you, Nate, and have a good day!
Good to know. I think the part of the sample that you might have missed is https://github.com/natemcmaster/LettuceEncrypt/blob/cd68f74586f2aba4dce1d25db4762de1457ee65f/samples/Web/Program.cs#L25-L27
Glad you figured it out.
I'm getting the error:
Failed to validate ownership of domainName 'barbarosa.ge'. Reason: urn:ietf:params:acme:error:connection: Timeout during connect (likely firewall problem), Code = BadRequest #208
Here's the docker command I am issuing on my Debian 10 (Linode) server with its output:
Startup.cs
adds to ConfigureServices:Program.cs
:appsettings.json
: