mirror of
https://github.com/htrefil/rkvm.git
synced 2025-02-06 20:46:07 +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"
|
help = "List of IP addresses to be used, can be empty if at least one DNS name is provided"
|
||||||
)]
|
)]
|
||||||
ip_addresses: Vec<IpAddr>,
|
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 {
|
fn main() -> ExitCode {
|
||||||
|
@ -110,6 +117,8 @@ subjectAltName = @alt_names
|
||||||
.arg(certificate)
|
.arg(certificate)
|
||||||
.arg("-config")
|
.arg("-config")
|
||||||
.arg(file.path())
|
.arg(file.path())
|
||||||
|
.arg("-days")
|
||||||
|
.arg("3650")
|
||||||
.status()?;
|
.status()?;
|
||||||
|
|
||||||
if !status.success() {
|
if !status.success() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue