Struct jortestkit::openssl::Openssl
source · pub struct Openssl {
program: PathBuf,
}
Fields§
§program: PathBuf
Implementations§
source§impl Openssl
impl Openssl
pub fn new() -> Result<Self, Error>
pub fn version(&self) -> Result<String, Error>
pub fn genrsa(&self, length: u32, out_file: &ChildPath) -> Result<String, Error>
pub fn pkcs8( &self, in_file: &ChildPath, out_file: &ChildPath ) -> Result<String, Error>
pub fn req( &self, prv_key: &ChildPath, out_cert: &ChildPath ) -> Result<String, Error>
pub fn x509( &self, prv_key: &ChildPath, in_cert: &ChildPath, out_cert: &ChildPath ) -> Result<String, Error>
pub fn convert_to_der( &self, in_cert: &ChildPath, out_der: &ChildPath ) -> Result<String, Error>
Auto Trait Implementations§
impl RefUnwindSafe for Openssl
impl Send for Openssl
impl Sync for Openssl
impl Unpin for Openssl
impl UnwindSafe for Openssl
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