|
|
@@ -117,7 +117,7 @@ func main() {
|
|
|
app.HelpName = "step-ca"
|
|
|
app.Version = step.Version()
|
|
|
app.Usage = "an online certificate authority for secure automated certificate management"
|
|
|
- app.UsageText = `**step-ca** <config> [**--password-file**=<file>]
|
|
|
+ app.UsageText = `**step-ca** [config] [**--context**=<name>] [**--password-file**=<file>]
|
|
|
[**--ssh-host-password-file**=<file>] [**--ssh-user-password-file**=<file>]
|
|
|
[**--issuer-password-file**=<file>] [**--resolver**=<addr>] [**--help**] [**--version**]`
|
|
|
app.Description = `**step-ca** runs the Step Online Certificate Authority
|
|
|
@@ -133,6 +133,7 @@ This command will run indefinitely on success and return \>0 if any error occurs
|
|
|
These examples assume that you have already initialized your PKI by running
|
|
|
'step ca init'. If you have not completed this step please see the 'Getting Started'
|
|
|
section of the README.
|
|
|
+
|
|
|
Run the Step CA and prompt for password:
|
|
|
'''
|
|
|
$ step-ca $STEPPATH/config/ca.json
|
|
|
@@ -141,7 +142,26 @@ Run the Step CA and read the password from a file - this is useful for
|
|
|
automating deployment:
|
|
|
'''
|
|
|
$ step-ca $STEPPATH/config/ca.json --password-file ./password.txt
|
|
|
-'''`
|
|
|
+'''
|
|
|
+Run the Step CA for the context selected with step and a custom password file:
|
|
|
+'''
|
|
|
+$ step context select ssh
|
|
|
+$ step-ca --password-file ./password.txt
|
|
|
+'''
|
|
|
+Run the Step CA for the context named _mybiz_ and prompt for password:
|
|
|
+'''
|
|
|
+$ step-ca --context=mybiz
|
|
|
+'''
|
|
|
+Run the Step CA for the context named _mybiz_ and an alternate ca.json file:
|
|
|
+'''
|
|
|
+$ step-ca --context=mybiz other-ca.json
|
|
|
+'''
|
|
|
+Run the Step CA for the context named _mybiz_ and read the password from a file - this is useful for
|
|
|
+automating deployment:
|
|
|
+'''
|
|
|
+$ step-ca --context=mybiz --password-file ./password.txt
|
|
|
+'''
|
|
|
+`
|
|
|
app.Flags = append(app.Flags, commands.AppCommand.Flags...)
|
|
|
app.Flags = append(app.Flags, cli.HelpFlag)
|
|
|
app.Copyright = fmt.Sprintf("(c) 2018-%d Smallstep Labs, Inc.", time.Now().Year())
|