Struct cert_manager::x509::Ca
source · pub struct Ca {
pub cert: Certificate,
}Expand description
Represents a certificate authoriry. CA acts as a trusted third party. ref. https://en.wikipedia.org/wiki/Certificate_authority ref. https://github.com/djc/sign-cert-remote/blob/main/src/main.rs
Fields§
§cert: CertificateImplementations§
source§impl Ca
impl Ca
pub fn new(common_name: &str) -> Result<Self>
pub fn new_with_parameters( cert_params: Option<CertificateParams> ) -> Result<Self>
sourcepub fn save(
&self,
overwrite: bool,
key_path: Option<&str>,
cert_path: Option<&str>
) -> Result<(String, String)>
pub fn save( &self, overwrite: bool, key_path: Option<&str>, cert_path: Option<&str> ) -> Result<(String, String)>
Saves the certificate in PEM format.
sourcepub fn issue_cert(&self, csr_pem: &str) -> Result<String>
pub fn issue_cert(&self, csr_pem: &str) -> Result<String>
Issues a certificate in PEM format. And returns the issued certificate in PEM format.
Auto Trait Implementations§
impl !RefUnwindSafe for Ca
impl Send for Ca
impl Sync for Ca
impl Unpin for Ca
impl !UnwindSafe for Ca
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more