Struct acme_client::SignedCertificate
[−]
[src]
pub struct SignedCertificate { /* fields omitted */ }
A signed certificate.
Methods
impl SignedCertificate
[src]
fn save_signed_certificate<P: AsRef<Path>>(&self, path: P) -> Result<()>
Saves signed certificate to a file
fn save_signed_certificate_and_chain<P: AsRef<Path>>(
&self,
url: Option<&str>,
path: P
) -> Result<()>
&self,
url: Option<&str>,
path: P
) -> Result<()>
Saves intermediate certificate and signed certificate to a file
You can additionally provide intermediate certificate url, by default it will use
LETSENCRYPT_INTERMEDIATE_CERT_URL
.
fn save_private_key<P: AsRef<Path>>(&self, path: P) -> Result<()>
Saves private key used to sign certificate to a file
fn save_csr<P: AsRef<Path>>(&self, path: P) -> Result<()>
Saves CSR used to sign certificateto to a file
fn write_signed_certificate<W: Write>(&self, writer: &mut W) -> Result<()>
Writes signed certificate to writer.
fn write_intermediate_certificate<W: Write>(
&self,
url: Option<&str>,
writer: &mut W
) -> Result<()>
&self,
url: Option<&str>,
writer: &mut W
) -> Result<()>
Writes intermediate certificate to writer.
You can additionally provide intermediate certificate url, by default it will use
LETSENCRYPT_INTERMEDIATE_CERT_URL
.
fn write_private_key<W: Write>(&self, writer: &mut W) -> Result<()>
Writes private key used to sign certificate to a writer
fn write_csr<W: Write>(&self, writer: &mut W) -> Result<()>
Writes CSR used to sign certificateto a writer
fn cert(&self) -> &X509
Returns reference to certificate
fn csr(&self) -> &X509Req
Returns reference to CSR used to sign certificate
fn pkey(&self) -> &PKey
Returns reference to pkey used to sign certificate