Last post Jan 14, 2021 10:49 AM by Ilja Stepanow
Mar 25, 2020 12:38 PM|Garner|LINK
I am trying to get SSL certificate from https://zerossl.com/ for my .net core 2.2 web site but having difficulty passing challenge state
because it tries to check if DGCustomerFirst
file exists and obviously putting that folders and files under wwwroot is not helping.
Mar 25, 2020 04:09 PM|KathyW|LINK
Can you put the file where it is looking for it?
Otherwise, this is a zerossl question, not an asp.net question, and their own documentation provides two options. Use DNS verification if you can't put a txt file where they are looking for it:
"The certificates are of Domain Validated (DV) type. That means you will only need to confirm your ownership of the domain name. The confirmation process is very simple and there are two options to choose from: DNS verficiation and HTTP verification. The
former requires creating a specific DNS record of TXT type for the domain. The latter requires creating a plain text file with a specific content on your web server. Choose the option you are most comfortable with - normally all registrars provide a way to
edit DNS records, but you might like creating a text file better. DNS verification also might take a bit longer depending on how quickly your registrar's servers publish the changes (usually within 15-20 minutes), while HTTP verification can be instant."
Mar 25, 2020 04:28 PM|timur.kh|LINK
ACME protol implies you will have some sort of automation in place to handle challenge-response for you. One option is
To bring it into context of your ASP.NET application, you will likely have to install a reverse proxy (nginx for example) in front of it and
configure it to play nicely with certbot
Jan 14, 2021 10:49 AM|Ilja Stepanow|LINK
Another option would be to put file into webfoot folder (wwwroot by default) and enable static files:
FileProvider = new PhysicalFileProvider(),
RequestPath = new PathString("/.well-known/acme-challange")