public string ProcessChallengeRequest(string token) { string keyThumbprintBase64 = JwsUtil.CreateJwsKey(this.PrivKey.PublicKey, out _, out _).CalcThumbprint()._Base64UrlEncode(); Con.WriteLine($"ACME: Processing the challenge token '{token}'."); return(token + "." + keyThumbprintBase64); }
public virtual async Task <WebRet> RequestWithJwsObjectAsync(WebMethods method, PrivKey privKey, string?kid, string nonce, string url, object?payload, CancellationToken cancel = default, string postContentType = Consts.MimeTypes.Json) { JwsPacket reqPacket = JwsUtil.Encapsulate(privKey, kid, nonce, url, payload); return(await this.RequestWithJsonObjectAsync(method, url, reqPacket, cancel, postContentType)); }