Function c2pa::create_signer::from_files

source ·
pub fn from_files<P: AsRef<Path>>(
    signcert_path: P,
    pkey_path: P,
    alg: SigningAlg,
    tsa_url: Option<String>
) -> Result<Box<dyn Signer>>
Available on crate features openssl_sign and file_io only.
Expand description

Creates a Signer instance using signing certificate and private key files.

§Arguments

  • signcert_path - Path to the signing certificate file
  • pkey_path - Path to the private key file
  • alg - Format for signing
  • tsa_url - Optional URL for a timestamp authority