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