pub fn handle_generate_certificate( instance_dir: &Path, args: GenerateCertificateArgs, ) -> Result<()>