Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmd/okms/x509/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ KEY-ID must be the CA's private key UUID`,
Subject: csr.Subject,
AuthorityKeyId: keyId[:],
NotBefore: time.Now(),
NotAfter: time.Now().Add(validity),
ExtKeyUsage: []x509.ExtKeyUsage{},
}
if isCA {
Expand Down Expand Up @@ -100,7 +101,7 @@ KEY-ID must be the CA's private key UUID`,
}
cmd.Flags().DurationVar(&validity, "validity", 365*24*time.Hour, "Validity duration")
cmd.Flags().BoolVar(&usageServerAuth, "server-auth", false, "Enable server auth extended key usage")
cmd.Flags().BoolVar(&usageServerAuth, "client-auth", false, "Enable client auth extended key usage")
cmd.Flags().BoolVar(&usageClientAuth, "client-auth", false, "Enable client auth extended key usage")

cmd.Flags().BoolVar(&isCA, "new-ca", false, "Sign as a CA certificate")

Expand Down
Loading