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