AcmeClient.createNewAccount

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

Before we can do anything, we need to register an account and bind a RSA/EC keypair to it, which is used for signatures in JWS and to create the CSR.

class AcmeClient
bool
createNewAccount
(
string[] contacts
,
bool tosAgreed = false
,
bool onlyReturnExisting = false
)

Parameters

contacts string[]

list of contacts for the account

tosAgreed bool

set this to true, when user ack on commandline. otherwise the default is false, and the CA server might refuse to operate in this case.

onlyReturnExisting bool

do not create a new account, but only reuse an existing one. Defaults to false. When set to true, an account is never created, but only existing accounts are returned. Useful to lookup the accountUrl of an key.

Note: tosAgreed must be queried from user, e.g. by setting a commandline option. This is required by the RFC8555. Note: Usually there is no need to set useExisting to false. If set to true, an existing account for a JWK is returned or new one is created and returned.

Meta