keytool 0.1.0

A command-line tool for managing certificates, similar to Java keytool.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::commands::command::Cmd;
use crate::error::KeyToolError;
use clap::Args;

#[derive(Args, Debug, Clone)]
pub struct PrintCertReqCmd {
    /// File path of the CSR
    #[arg(long)]
    pub file: String,
}

impl Cmd for PrintCertReqCmd {
    fn run(&self) -> Result<(), KeyToolError> {
        println!("执行 printcertreq 命令,参数: {:?}", self);
        Ok(())
    }
}