pub struct CertSigner { /* private fields */ }Implementations§
Source§impl CertSigner
impl CertSigner
pub fn root_siger(key_size: i32) -> Result<CertSigner, RlsError>
pub fn server_signer( key_size: i32, ca_cert: Certificate, ) -> Result<CertSigner, RlsError>
pub fn set_expire(&mut self, years: i64) -> Result<(), RlsError>
pub fn add_subject( &self, dn: DnType, value: impl AsRef<str>, ) -> Result<(), RlsError>
pub fn add_extension(&mut self, extension: CertExtend) -> Result<(), RlsError>
pub fn sign_by_self(&mut self) -> Result<(), RlsError>
pub fn sign_by(&mut self, ca_key: &RsaKey) -> Result<(), RlsError>
pub fn key(&self) -> &RsaKey
pub fn cert_mut(&mut self) -> &mut Certificate
Auto Trait Implementations§
impl Freeze for CertSigner
impl RefUnwindSafe for CertSigner
impl !Send for CertSigner
impl !Sync for CertSigner
impl Unpin for CertSigner
impl UnsafeUnpin for CertSigner
impl UnwindSafe for CertSigner
Blanket Implementations§
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