pki: Add --label options to --est* command synopsis

Also fixes some formatting in the man pages.
This commit is contained in:
Tobias Brunner
2023-06-02 12:56:03 +02:00
parent 03c08423dd
commit c593443432
5 changed files with 16 additions and 15 deletions
+4 -3
View File
@@ -357,15 +357,16 @@ static void __attribute__ ((constructor))reg()
command_register((command_t) { command_register((command_t) {
est, 'E', "est", est, 'E', "est",
"Enroll an X.509 certificate with an EST server", "Enroll an X.509 certificate with an EST server",
{"--url url [--in file] [--cacert file]+ [-userpass username:password]", {"--url url [--label label] [--in file] --cacert file",
"[--cert file|--certid hex --key file|--keyid hex] [--interval time]", "[--cert file|--certid hex --key file|--keyid hex]",
"[--userpass username:password] [--interval time]",
"[--maxpolltime time] [--outform der|pem]"}, "[--maxpolltime time] [--outform der|pem]"},
{ {
{"help", 'h', 0, "show usage information"}, {"help", 'h', 0, "show usage information"},
{"url", 'u', 1, "URL of the EST server"}, {"url", 'u', 1, "URL of the EST server"},
{"label", 'l', 1, "label in the EST server path"}, {"label", 'l', 1, "label in the EST server path"},
{"in", 'i', 1, "PKCS#10 input file, default: stdin"}, {"in", 'i', 1, "PKCS#10 input file, default: stdin"},
{"cacert", 'C', 1, "CA certificate"}, {"cacert", 'C', 1, "CA certificate(s)"},
{"cert", 'c', 1, "old certificate about to be renewed"}, {"cert", 'c', 1, "old certificate about to be renewed"},
{"certid", 'X', 1, "smartcard or TPM certificate object handle" }, {"certid", 'X', 1, "smartcard or TPM certificate object handle" },
{"key", 'k', 1, "old private key about to be replaced"}, {"key", 'k', 1, "old private key about to be replaced"},
+4 -3
View File
@@ -131,13 +131,14 @@ static void __attribute__ ((constructor))reg()
{ {
command_register((command_t) { command_register((command_t) {
estca, 'e', "estca", estca, 'e', "estca",
"get CA certificate[s] from a EST server", "get CA certificate[s] from an EST server",
{"--url url [--cacert file]+ [--caout file] [--outform der|pem] [--force]"}, {"--url url [--label label] --cacert file [--caout file]",
"[--outform der|pem] [--force]"},
{ {
{"help", 'h', 0, "show usage information"}, {"help", 'h', 0, "show usage information"},
{"url", 'u', 1, "URL of the EST server"}, {"url", 'u', 1, "URL of the EST server"},
{"label", 'l', 1, "label in the EST server path"}, {"label", 'l', 1, "label in the EST server path"},
{"cacert", 'C', 1, "TLS CA certificate"}, {"cacert", 'C', 1, "TLS CA certificate(s)"},
{"caout", 'c', 1, "CA certificate [template]"}, {"caout", 'c', 1, "CA certificate [template]"},
{"outform", 'f', 1, "encoding of stored certificates, default: der"}, {"outform", 'f', 1, "encoding of stored certificates, default: der"},
{"force", 'F', 0, "force overwrite of existing files"}, {"force", 'F', 0, "force overwrite of existing files"},
+4 -5
View File
@@ -7,14 +7,13 @@ pki \-\-est \- Enroll an X.509 certificate with an EST server
.SH "SYNOPSIS" .SH "SYNOPSIS"
. .
.SY pki\ \-\-est .SY pki\ \-\-est
.BI\-\-\-url\~ url .BI \-\-\-url\~ url
.OP \-\-label label .OP \-\-label label
.OP \-\-in file .OP \-\-in file
.BI \-\-cacert\~ file .BI \-\-cacert\~ file
.RB [ \-\-cert .RB [ \-\-cert
.IR file | \fB\-\-certid\fR .IR file | \fB\-\-certid\fR
.IR hex ] .IB hex\~ \-\-key
.RB [ \-\-key
.IR file | \fB\-\-keyid\fR .IR file | \fB\-\-keyid\fR
.IR hex ] .IR hex ]
.OP \-\-userpass username:password .OP \-\-userpass username:password
@@ -118,8 +117,8 @@ To save some typing work the following command line options are stored in a
.B NOTE: .B NOTE:
For a successful HTTPS connection, trust must be established into the EST server For a successful HTTPS connection, trust must be established into the EST server
certificate. The TLS trust chain including the root CA certificate and certificate. The TLS trust chain including the root CA certificate and
optionally intermediate CA certificates must be given using [multiple] optionally intermediate CA certificates must be given using multiple
.B --cacert* .B --cacert
options. options.
.P .P
The The
+3 -3
View File
@@ -7,9 +7,9 @@ pki \-\-estca \- Get CA certificate[s] from an EST server
.SH "SYNOPSIS" .SH "SYNOPSIS"
. .
.SY pki\ \-\-estca .SY pki\ \-\-estca
.BI\-\-\-url\~ url .BI \-\-url\~ url
.OP \-\-label label .OP \-\-label label
.BI\-\-\-cacert\~ file .BI \-\-cacert\~ file
.OP \-\-caout file .OP \-\-caout file
.OP \-\-outform encoding .OP \-\-outform encoding
.OP \-\-force .OP \-\-force
@@ -92,7 +92,7 @@ To save some typing work the following command line options are stored in a
.B NOTE: .B NOTE:
For a successful HTTPS connection, trust must be established into the EST server For a successful HTTPS connection, trust must be established into the EST server
certificate. The TLS trust chain including the root CA certificate and optionally certificate. The TLS trust chain including the root CA certificate and optionally
intermediate CA certificates must be given using [multiple] intermediate CA certificates must be given using multiple
.B --cacert .B --cacert
options. options.
.P .P
+1 -1
View File
@@ -9,7 +9,7 @@ pki \-\-scep \- Enroll an X.509 certificate with a SCEP server
.SY pki\ \-\-scep .SY pki\ \-\-scep
.BI\-\-\-url\~ url .BI\-\-\-url\~ url
.OP \-\-in file .OP \-\-in file
.BI \-\-dn\~ distinguished-name .OP \-\-dn\~ distinguished-name
.OP \-\-san subjectAltName .OP \-\-san subjectAltName
.OP \-\-profile profile .OP \-\-profile profile
.OP \-\-password password .OP \-\-password password