easy-rsa registry
Getting started
cargo add easy-rsa-registry
Functions
Read certs from registry file
let registry_file_path = Path::new("index.txt");
let registry_file_path = format!("{}", registry_file_path.display());
let certs = read_certs_from_file(®istry_file_path)?;
Update cert status
let registry_file_path = Path::new("index.txt");
let registry_file_path = format!("{}", registry_file_path.display());
let cert_serial: &str = "36593F7437AEB5007D2953E7A98B7601";
let certs = update_cert_status(®istry_file_path, &cert_serial, EasyRsaCertificateStatus::Revoked)?;
Remove certificate by serial
let registry_file_path = Path::new("index.txt");
let registry_file_path = format!("{}", registry_file_path.display());
let cert_serial: &str = "36593F7437AEB5007D2953E7A98B7601";
let certs = remove_cert(®istry_file_path, &cert_serial)?;