ACMESharp.AuthorizeChallenge.GenerateHttpChallengeAnswer C# (CSharp) Метод

GenerateHttpChallengeAnswer() публичный Метод

Returns a key-value pair that represents the HTTP resource path that needs to be configured (the key) and the resource content that should be returned for an HTTP request for this path on a server that the target DNS resolve to.
public GenerateHttpChallengeAnswer ( string dnsId, ISigner signer ) : string>.KeyValuePair
dnsId string
signer ISigner
Результат string>.KeyValuePair
        public KeyValuePair<string, string> GenerateHttpChallengeAnswer(string dnsId, ISigner signer)
        {
            var keyAuthz = JwsHelper.ComputeKeyAuthorization(signer, Token);

            return new KeyValuePair<string, string>(
                    $"{AcmeProtocol.HTTP_CHALLENGE_PATHPREFIX}{Token}", keyAuthz);
        }