pub(crate) fn generate( file: &PathBuf, output: Option<PathBuf>, private_key: Option<&PrivateKey>, key_type: &Option<String>, ) -> Result<()>
A function to generate C509 certificate.