Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AcmeDnsChallenge.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using Waher.Content;
6
8{
13 {
14 internal AcmeDnsChallenge(AcmeClient Client, Uri AccountLocation, IEnumerable<KeyValuePair<string, object>> Obj)
15 : base(Client, AccountLocation, Obj)
16 {
17 }
18
23 {
24 get { return "_acme-challenge."; }
25 }
26
32 public override string KeyAuthorization
33 {
34 get
35 {
36 return Base64Url.Encode(Hashes.ComputeSHA256Hash(Encoding.ASCII.GetBytes(base.KeyAuthorization)));
37 }
38 }
39
40 }
41}
Static class that does BASE64URL encoding (using URL and filename safe alphabet), as defined in RFC46...
Definition: Base64Url.cs:11
static string Encode(byte[] Data)
Converts a binary block of data to a Base64URL-encoded string.
Definition: Base64Url.cs:48
Base class of all ACME challenges.
Implements an ACME client for the generation of certificates using ACME-compliant certificate servers...
Definition: AcmeClient.cs:24
Represents an ACME DNS challenge.
string ValidationDomainNamePrefix
Domain name prefix used to validate DNS domain name ownership.
override string KeyAuthorization
Key authorization string. Used as response to challenge. Should be added to a TXT record to the domai...
AcmeClient Client
ACME client.
Definition: AcmeObject.cs:26
Uri AccountLocation
Account location.
Definition: AcmeResource.cs:31
Contains methods for simple hash calculations.
Definition: Hashes.cs:59
static byte[] ComputeSHA256Hash(byte[] Data)
Computes the SHA-256 hash of a block of binary data.
Definition: Hashes.cs:348