pub fn generate_default_pem(key_path: &str, cert_path: &str) -> Result<()>
Expand description

Generates a X509 certificate pair and writes them as PEM files. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/staking#NewCertAndKeyBytes

See https://github.com/ava-labs/avalanche-ops/blob/ad1730ed193cf1cd5056f23d130c3defc897cab5/avalanche-types/src/cert.rs to use “openssl” crate.