digifirma

Crates.iodigifirma
lib.rsdigifirma
version0.1.1
sourcesrc
created_at2021-04-06 21:04:48.619788
updated_at2022-09-21 09:01:41.035841
descriptionItalian CIE P7M parser and signature checker
homepage
repositoryhttps://github.com/eutampieri/digifirma
max_upload_size
id380005
size10,230
(eutampieri)

documentation

README

digifirma

digifirma aims to provide an easy to use interface to verify digitally signed documents exported from the CieSign app.

At the moment, there's a missing feature in Rust OpenSSL bindings that prevents this crate from verifying the authenticity of the certificate.

Usage

let file = std::fs::read("file.p7m").unwrap();
let data = digifirma::verify(&file).unwrap();
std::fs::write("output", data.file); // Write the content which has been signed to a file
let signer = data.signers[0];
assert_eq!("MARIO", signer.name);
assert_eq!("ROSSI", signer.surname);
assert_eq!("AB12345CD", signer.document_id);
assert_eq!("RSSMRO50E01D634H", signer.fiscal_code.get_codice());
Commit count: 10

cargo fmt