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