We are using the DNS validations for the domains.
Once we are placing the order we are getting the values for the TXT record.
So it will take some time for a user to set the txt record for the domain.
So once the txt record is confirmed we need to instruct the let’s encrypt to validate the challenge.
So I need to rereive the challenge from the URI or from the token. I am using c# Certs.Acme library for this.
var keytDetails = KeyFactory.FromPem(pemKey); var accountPemKey = keytDetails.ToPem(); var acme = new AcmeContext(WellKnownServers.LetsEncryptV2, keytDetails); var url = @"https://acme-v02.api.letsencrypt.org/acme/challenge/CwW5hxSMP0DblPZT0A9hJO-JV3Dwfg3eFu4R4x5FfYE/18301162072"; var uri = new Uri(url); var authorizationDetails = acme.Authorization(uri); var challenges = await authorizationDetails.Challenges();
I am not getting any challenge with this code. Please provide me any interface or method that will help me to retrieve the challenge for the domain.