Struct acme_client::CertificateSigner
[−]
[src]
pub struct CertificateSigner<'a> { /* fields omitted */ }
Helper to sign a certificate.
Methods
impl<'a> CertificateSigner<'a>
[src]
fn pkey(self, pkey: PKey) -> CertificateSigner<'a>
Set PKey of CSR
fn pkey_from_file<P: AsRef<Path>>(
self,
path: P
) -> Result<CertificateSigner<'a>>
self,
path: P
) -> Result<CertificateSigner<'a>>
Load PEM formatted PKey from file
fn csr(self, csr: X509Req) -> CertificateSigner<'a>
Set CSR to sign
fn csr_from_file<P: AsRef<Path>>(
self,
pkey_path: P,
csr_path: P
) -> Result<CertificateSigner<'a>>
self,
pkey_path: P,
csr_path: P
) -> Result<CertificateSigner<'a>>
Load PKey and CSR from file
fn sign_certificate(self) -> Result<SignedCertificate>
Signs certificate.
CSR and PKey will be generated if it doesn't set or loaded first.