AcmeClient

A simple ACME v2 client

This class implements the ACME v2 protocol to obtain signed SSL certificates.

Constructors

this
this(string accountPrivateKey, bool beVerbose)

Instanciate a AcmeClient using a private key for signing

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

Callback
alias Callback = int function(string domainName, string url, string keyAuthorization)

Authorization setup callback

Functions

createNewAccount
bool createNewAccount(string[] contacts, bool tosAgreed, bool onlyReturnExisting)

Create a new account and bind a key pair to it.

getNonce
string getNonce()

Get a fresh and new Nonce from server

issueCertificate
Certificate issueCertificate(string domainKeyData, string[] domainNames, Callback callback)

Issue a certificate for domainNames

setupClient
void setupClient()

Call once after instantiating AcmeClient to setup parameters

verifyChallengePassed
void verifyChallengePassed(string authorizationUrl, JSONValue challenge)

Acknowledge to CA server that a Auth is setup for check.

Variables

acmeRes
AcmeResources acmeRes;

The Urls to the ACME resources

Meta