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]
[src]
Creates a new identifier authorization object for domain
pub fn certificate_signer<'a>(
&'a self,
domains: &'a [&'a str]
) -> CertificateSigner<'a>
[src]
&'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.
pub fn revoke_certificate_from_file<P: AsRef<Path>>(
&self,
path: P
) -> Result<()>
[src]
&self,
path: P
) -> Result<()>
Revokes a signed certificate from pem formatted file
pub fn revoke_certificate(&self, cert: &X509) -> Result<()>
[src]
Revokes a signed certificate
pub fn write_private_key<W: Write>(&self, writer: &mut W) -> Result<()>
[src]
Writes account private key to a writer
pub fn save_private_key<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
Saves account private key to a file
pub fn pkey(&self) -> &PKey<Private>
[src]
Returns a reference to account private key
pub fn directory(&self) -> &Directory
[src]
Returns a reference to directory used to create account