Struct rcgen::Certificate
source · pub struct Certificate { /* private fields */ }
Expand description
A self signed certificate together with signing keys
Implementations
sourceimpl Certificate
impl Certificate
sourcepub fn from_params(params: CertificateParams) -> Self
pub fn from_params(params: CertificateParams) -> Self
Generates a new self-signed certificate from the given parameters
sourcepub fn serialize_der(&self) -> Vec<u8> ⓘ
pub fn serialize_der(&self) -> Vec<u8> ⓘ
Serializes the certificate to the binary DER format
sourcepub fn serialize_pem(&self) -> String
pub fn serialize_pem(&self) -> String
Serializes the certificate to the ASCII PEM format
sourcepub fn serialize_private_key_der(&self) -> Vec<u8> ⓘ
pub fn serialize_private_key_der(&self) -> Vec<u8> ⓘ
Serializes the private key in PKCS#8 format
sourcepub fn serialize_private_key_pem(&self) -> String
pub fn serialize_private_key_pem(&self) -> String
Serializes the private key in PEM format
Auto Trait Implementations
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more