Struct acme_client::AccountRegistration
[−]
[src]
pub struct AccountRegistration { /* fields omitted */ }
Helper to register an account.
Methods
impl AccountRegistration
[src]
fn email(self, email: &str) -> AccountRegistration
Sets contact email address
fn contact(self, contact: &[&str]) -> AccountRegistration
Sets contact details such as telephone number (Let's Encrypt only supports email address).
fn agreement(self, url: &str) -> AccountRegistration
Sets agreement url,
LETSENCRYPT_AGREEMENT_URL
will be used during registration if it's not set.
fn pkey(self, pkey: PKey) -> AccountRegistration
Sets account private key. A new key will be generated if it's not set.
fn pkey_from_file<P: AsRef<Path>>(self, path: P) -> Result<AccountRegistration>
Sets PKey from a PEM formatted file.
fn register(self) -> Result<Account>
Registers an account.
A PKey will be generated if it doesn't exists.