pub fn gen_node_cert(node_name: &str) -> Result<Certificate>