pub fn rsa_keypair_from_file(path: &str) -> Result<Self, Error> {
        let der = Self::read_bytes(path)?;
        let key_pair = signature::RsaKeyPair::from_der(der.as_slice())?;
        Ok(Secret::RsaKeyPair(Arc::new(key_pair)))
    }
/// Convenience function to get the RSA Keypair from a DER encoded RSA private key.
/// See example in the [`Secret::RsaKeyPair`] variant documentation for usage.
Convenience function to get the RSA Keypair from a DER encoded RSA private key.
See example in the [`Secret::RsaKeyPair`] variant documentation for usage.
Convenience function to get the RSA Keypair from a DER encoded RSA private key . See example in the [ ` Secret :: RsaKeyPair ` ] variant documentation for usage .
pub fn rsa_keypair_from_file(path: &str) -> Result<Self, Error> {
        let der = Self::read_bytes(path)?;
        let key_pair = signature::RsaKeyPair::from_der(der.as_slice())?;
        Ok(Secret::RsaKeyPair(Arc::new(key_pair)))
    }
pub fn rsa_keypair_from_file ( path : & str ) -> Result < Self , Error > { let der = Self :: read_bytes ( path ) ? ; let key_pair = signature :: RsaKeyPair :: from_der ( der . as_slice ( ) ) ? ; Ok ( Secret :: RsaKeyPair ( Arc :: new ( key_pair ) ) ) }
Convenience function to get the RSA Keypair from a DER encoded RSA private key.
Convenience function to get the RSA Keypair from a DER encoded RSA private key .
path
&str
path
&str