mirror of
https://github.com/htrefil/rkvm.git
synced 2025-01-18 10:26:12 +01:00
Add -D/--days flag
This commit is contained in:
parent
bfa1c0ac18
commit
2f8d583a12
1 changed files with 9 additions and 0 deletions
|
@ -30,6 +30,13 @@ struct Args {
|
|||
help = "List of IP addresses to be used, can be empty if at least one DNS name is provided"
|
||||
)]
|
||||
ip_addresses: Vec<IpAddr>,
|
||||
#[clap(
|
||||
long,
|
||||
short = 'D',
|
||||
help = "How many days should this certificate be valid for",
|
||||
default_value = "365"
|
||||
)]
|
||||
days: u32,
|
||||
}
|
||||
|
||||
fn main() -> ExitCode {
|
||||
|
@ -110,6 +117,8 @@ subjectAltName = @alt_names
|
|||
.arg(certificate)
|
||||
.arg("-config")
|
||||
.arg(file.path())
|
||||
.arg("-days")
|
||||
.arg("3650")
|
||||
.status()?;
|
||||
|
||||
if !status.success() {
|
||||
|
|
Loading…
Reference in a new issue