feat: Commands to generate server and client certs.
This commit is contained in:
1 parent
abecfc3708
commit
e8503ab141
3 files changed
+244
-2
No files matched your search
@@ -8,9 +8,13 @@ import (
|
||||
var Name string
|
||||
var OutDir string
|
||||
|
||||
// Needed by all subcommands that generate certificates.
|
||||
// Needed by subcommands that generate certificates.
|
||||
var CommonName string
|
||||
|
||||
// Needed by subcommands that generate leaf certificates.
|
||||
var CAFile string
|
||||
var CAKeyFile string
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(generateCmd)
|
||||
|
||||
@@ -31,7 +35,6 @@ func init() {
|
||||
".",
|
||||
"output directory for artifacts produced by this command, defaults to the current directory",
|
||||
)
|
||||
generateCmd.MarkPersistentFlagRequired("output-dir")
|
||||
generateCmd.MarkPersistentFlagDirname("output-dir")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user