Function signer_from_cert_chain_and_private_key

Source
pub fn signer_from_cert_chain_and_private_key(
    cert_chain: &[u8],
    private_key: &[u8],
    alg: SigningAlg,
    time_stamp_service_url: Option<String>,
) -> Result<Box<dyn RawSigner + Send + Sync>, RawSignerError>
Expand description

Return a built-in RawSigner instance using the provided signing certificate and private key.

Which signers are available may vary depending on the platform and which crate features were enabled. If the desired signing algorithm is unavailable, will respond with Err(RawSignerError::InternalError).

May return an Err response if the certificate chain or private key are invalid.