Struct acme_client::Account
[−]
[src]
pub struct Account { /* fields omitted */ }
Registered account object.
Every operation requires a registered account. To register an Account
you can use
Directory::register_account
method.
See AccountRegistration helper for more details.
Methods
impl Account
[src]
Creates a new identifier authorization object for domain
fn certificate_signer<'a>(
&'a self,
domains: &'a [&'a str]
) -> CertificateSigner<'a>
&'a self,
domains: &'a [&'a str]
) -> CertificateSigner<'a>
Creates a new CertificateSigner
helper to sign a certificate for list of domains.
domains
must be list of the domain names you want to sign a certificate for.
Currently there is no way to retrieve subject alt names from a X509Req.
You can additionally use your own private key and CSR.
See CertificateSigner
for details.
fn revoke_certificate_from_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
Revokes a signed certificate from pem formatted file
fn revoke_certificate(&self, cert: &X509) -> Result<()>
Revokes a signed certificate
fn write_private_key<W: Write>(&self, writer: &mut W) -> Result<()>
Writes account private key to a writer
fn save_private_key<P: AsRef<Path>>(&self, path: P) -> Result<()>
Saves account private key to a file
fn pkey(&self) -> &PKey
Returns a reference to account private key
fn directory(&self) -> &Directory
Returns a reference to directory used to create account