Module openpgp_ca_lib::ca [−][src]
OpenPGP CA as a library
Example usage:
// all state of an OpenPGP CA instance is persisted in one SQLite database let db_filename = "/tmp/openpgp-ca.sqlite"; // start a new OpenPGP CA instance (implicitly creates the database file) let openpgp_ca = OpenpgpCa::new(Some(db_filename)).expect("Failed to set up CA"); // initialize the CA Admin (with domainname and a symbolic name) openpgp_ca.ca_init("example.org", Some("Example Org OpenPGP CA Key")).unwrap(); // create a new user, with all signatures // (the private key is printed to stdout and needs to be manually // processed from there) openpgp_ca.user_new(Some(&"Alice"), &["alice@example.org"], None, false, false).unwrap();
Structs
OpenpgpCa | OpenpgpCa exposes the functionality of OpenPGP CA as a library (the command line utility ‘openpgp-ca’ is built on top of this library) |