Class ISignatureKeyExtensions
Helper methods for AccountKey.
Inheritance
ISignatureKeyExtensions
Namespace: Certes
Assembly: Certes.dll
Syntax
public static class ISignatureKeyExtensions
Methods
| Edit this page View SourceDnsTxt(IKey, string)
Generates the value for DNS TXT record.
Declaration
public static string DnsTxt(this IKey key, string token)
Parameters
| Type | Name | Description |
|---|---|---|
| IKey | key | The key. |
| string | token | The challenge token. |
Returns
| Type | Description |
|---|---|
| string | The DNS text value for dns-01 validation. |
KeyAuthorization(IKey, string)
Generates key authorization string.
Declaration
public static string KeyAuthorization(this IKey key, string token)
Parameters
| Type | Name | Description |
|---|---|---|
| IKey | key | The key. |
| string | token | The challenge token. |
Returns
| Type | Description |
|---|---|
| string | The key authorization string. |
Thumbprint(IKey)
Generates the base64 encoded thumbprint for the given account key.
Declaration
public static string Thumbprint(this IKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| IKey | key | The account key. |
Returns
| Type | Description |
|---|---|
| string | The thumbprint. |
TlsAlpnCertificate(IKey, string, string, IKey)
Generates the certificate for TlsAlpn01 validation.
Declaration
public static string TlsAlpnCertificate(this IKey key, string token, string subjectName, IKey certificateKey)
Parameters
| Type | Name | Description |
|---|---|---|
| IKey | key | The key. |
| string | token | The TlsAlpn01 token. |
| string | subjectName | Name of the subject. |
| IKey | certificateKey | The certificate key pair. |
Returns
| Type | Description |
|---|---|
| string | The tls-alpn-01 certificate in PEM. |