xref: /freebsd/secure/usr.bin/openssl/man/openssl-cmp.1 (revision 9aaf4e3be61fc20a84347b7c2c524256a4b93a43)
Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42)

Standard preamble:
========================================================================
..
..
.. Set up some character translations and predefined strings. \*(-- will
give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
double quote, and \*(R" will give a right double quote. \*(C+ will
give a nicer C++. Capital omega is used to do unbreakable dashes and
therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
nothing in troff, for use with C<>.
.tr \(*W- . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\}
Escape single quotes in literal strings from groff's Unicode transform.

If the F register is >0, we'll generate index entries on stderr for
titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
entries marked with X<> in POD. Of course, you'll have to process the
output yourself in some meaningful fashion.

Avoid warning from groff about undefined register 'F'.
.. .nr rF 0 . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] .\} . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents . \" corrections for vroff . \" for low resolution devices (crt and lpr) \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} ========================================================================

Title "OPENSSL-CMP 1ossl"
OPENSSL-CMP 1ossl "2023-09-22" "3.0.11" "OpenSSL"
For nroff, turn off justification. Always turn off hyphenation; it makes
way too many mistakes in technical documents.
"NAME"
openssl-cmp - Certificate Management Protocol (CMP, RFC 4210) application
"SYNOPSIS"
Header "SYNOPSIS" \fBopenssl cmp [-help] [-config filename] [-section names] [-verbosity level]

Generic message options:

[-cmd ir|cr|kur|p10cr|rr|genm] [-infotype name] [-geninfo OID:int:N]

Certificate enrollment options:

[-newkey filename|uri] [-newkeypass arg] [-subject name] [-issuer name] [-days number] [-reqexts name] [-sans spec] [-san_nodefault] [-policies name] [-policy_oids names] [-policy_oids_critical] [-popo number] [-csr filename] [-out_trusted filenames|uris] [-implicit_confirm] [-disable_confirm] [-certout filename] [-chainout filename]

Certificate enrollment and revocation options:

[-oldcert filename|uri] [-revreason number]

Message transfer options:

[-server [http[s]://][userinfo@]host[:port][/path][?query][#fragment]] [-proxy [http[s]://][userinfo@]host[:port][/path][?query][#fragment]] [-no_proxy addresses] [-recipient name] [-path remote_path] [-keep_alive value] [-msg_timeout seconds] [-total_timeout seconds]

Server authentication options:

[-trusted filenames|uris] [-untrusted filenames|uris] [-srvcert filename|uri] [-expect_sender name] [-ignore_keyusage] [-unprotected_errors] [-extracertsout filename] [-cacertsout filename]

Client authentication and protection options:

[-ref value] [-secret arg] [-cert filename|uri] [-own_trusted filenames|uris] [-key filename|uri] [-keypass arg] [-digest name] [-mac name] [-extracerts filenames|uris] [-unprotected_requests]

Credentials format options:

[-certform PEM|DER] [-keyform PEM|DER|P12|ENGINE] [-otherpass arg] [-engine id] [-provider name] [-provider-path path] [-propquery propq]

Random state options:

[-rand files] [-writerand file]

\s-1TLS\s0 connection options:

[-tls_used] [-tls_cert filename|uri] [-tls_key filename|uri] [-tls_keypass arg] [-tls_extra filenames|uris] [-tls_trusted filenames|uris] [-tls_host name]

Client-side debugging options:

[-batch] [-repeat number] [-reqin filenames] [-reqin_new_tid] [-reqout filenames] [-rspin filenames] [-rspout filenames] [-use_mock_srv]

Mock server options:

[-port number] [-max_msgs number] [-srv_ref value] [-srv_secret arg] [-srv_cert filename|uri] [-srv_key filename|uri] [-srv_keypass arg] [-srv_trusted filenames|uris] [-srv_untrusted filenames|uris] [-rsp_cert filename|uri] [-rsp_extracerts filenames|uris] [-rsp_capubs filenames|uris] [-poll_count number] [-check_after number] [-grant_implicitconf] [-pkistatus number] [-failure number] [-failurebits number] [-statusstring arg] [-send_error] [-send_unprotected] [-send_unprot_err] [-accept_unprotected] [-accept_unprot_err] [-accept_raverified]

Certificate verification options, for both \s-1CMP\s0 and \s-1TLS:\s0

[-allow_proxy_certs] [-attime timestamp] [-no_check_time] [-check_ss_sig] [-crl_check] [-crl_check_all] [-explicit_policy] [-extended_crl] [-ignore_critical] [-inhibit_any] [-inhibit_map] [-partial_chain] [-policy arg] [-policy_check] [-policy_print] [-purpose purpose] [-suiteB_128] [-suiteB_128_only] [-suiteB_192] [-trusted_first] [-no_alt_chains] [-use_deltas] [-auth_level num] [-verify_depth num] [-verify_email email] [-verify_hostname hostname] [-verify_ip ip] [-verify_name name] [-x509_strict] [-issuer_checks]

"DESCRIPTION"
Header "DESCRIPTION" The cmp command is a client implementation for the Certificate Management Protocol (\s-1CMP\s0) as defined in \s-1RFC4210.\s0 It can be used to request certificates from a \s-1CA\s0 server, update their certificates, request certificates to be revoked, and perform other types of \s-1CMP\s0 requests.
"OPTIONS"
Header "OPTIONS"
"-help" 4
Item "-help" Display a summary of all options
"-config filename" 4
Item "-config filename" Configuration file to use. An empty string "" means none. Default filename is from the environment variable \*(C`OPENSSL_CONF\*(C'.
"-section names" 4
Item "-section names" Section(s) to use within config file defining \s-1CMP\s0 options. An empty string "" means no specific section. Default is \*(C`cmp\*(C'. .Sp Multiple section names may be given, separated by commas and/or whitespace (where in the latter case the whole argument must be enclosed in \*(L"...\*(R"). Contents of sections named later may override contents of sections named before. In any case, as usual, the \*(C`[default]\*(C' section and finally the unnamed section (as far as present) can provide per-option fallback values.
"-verbosity level" 4
Item "-verbosity level" Level of verbosity for logging, error output, etc. 0 = \s-1EMERG, 1\s0 = \s-1ALERT, 2\s0 = \s-1CRIT, 3\s0 = \s-1ERR, 4\s0 = \s-1WARN, 5\s0 = \s-1NOTE, 6\s0 = \s-1INFO, 7\s0 = \s-1DEBUG, 8\s0 = \s-1TRACE.\s0 Defaults to 6 = \s-1INFO.\s0
"Generic message options"
Subsection "Generic message options"
"-cmd ir|cr|kur|p10cr|rr|genm" 4
Item "-cmd ir|cr|kur|p10cr|rr|genm" \s-1CMP\s0 command to execute. Currently implemented commands are:

"ir - Initialization Request" 8
Item "ir - Initialization Request"

0

"cr - Certificate Request" 8
Item "cr - Certificate Request"
"p10cr - PKCS#10 Certification Request (for legacy support)" 8
Item "p10cr - PKCS#10 Certification Request (for legacy support)"
"kur - Key Update Request" 8
Item "kur - Key Update Request"
"rr - Revocation Request" 8
Item "rr - Revocation Request"
"genm - General Message" 8
Item "genm - General Message"

.Sp \fBir requests initialization of an end entity into a \s-1PKI\s0 hierarchy by issuing a first certificate. .Sp \fBcr requests issuing an additional certificate for an end entity already initialized to the \s-1PKI\s0 hierarchy. .Sp \fBp10cr requests issuing an additional certificate similarly to cr but using legacy PKCS#10 \s-1CSR\s0 format. .Sp \fBkur requests a (key) update for an existing certificate. .Sp \fBrr requests revocation of an existing certificate. .Sp \fBgenm requests information using a General Message, where optionally included InfoTypeAndValues may be used to state which info is of interest. Upon receipt of the General Response, information about all received \s-1ITAV\s0 infoTypes is printed to stdout.

"-infotype name" 4
Item "-infotype name" Set InfoType name to use for requesting specific info in genm, e.g., \*(C`signKeyPairTypes\*(C'.
"-geninfo OID:int:N" 4
Item "-geninfo OID:int:N" generalInfo integer values to place in request PKIHeader with given \s-1OID,\s0 e.g., \*(C`1.2.3.4:int:56789\*(C'.
"Certificate enrollment options"
Subsection "Certificate enrollment options"
"-newkey filename|uri" 4
Item "-newkey filename|uri" The source of the private or public key for the certificate being requested. Defaults to the public key in the PKCS#10 \s-1CSR\s0 given with the -csr option, the public key of the reference certificate, or the current client key. .Sp The public portion of the key is placed in the certification request. .Sp Unless -cmd p10cr, -popo -1, or -popo 0 is given, the private key will be needed as well to provide the proof of possession (\s-1POPO\s0), where the -key option may provide a fallback.
"-newkeypass arg" 4
Item "-newkeypass arg" Pass phrase source for the key given with the -newkey option. If not given here, the password will be prompted for if needed. .Sp For more information about the format of arg see \fBopenssl-passphrase-options\|(1).
"-subject name" 4
Item "-subject name" X509 Distinguished Name (\s-1DN\s0) of subject to use in the requested certificate template. If the NULL-DN ("/") is given then no subject is placed in the template. Default is the subject \s-1DN\s0 of any PKCS#10 \s-1CSR\s0 given with the -csr option. For \s-1KUR,\s0 a further fallback is the subject \s-1DN\s0 of the reference certificate (see -oldcert) if provided. This fallback is used for \s-1IR\s0 and \s-1CR\s0 only if no SANs are set. .Sp If provided and neither -cert nor -oldcert is given, the subject \s-1DN\s0 is used as fallback sender of outgoing \s-1CMP\s0 messages. .Sp The argument must be formatted as /type0=value0/type1=value1/type2=.... Special characters may be escaped by \*(C`\e\*(C' (backslash); whitespace is retained. Empty values are permitted, but the corresponding type will not be included. Giving a single \*(C`/\*(C' will lead to an empty sequence of RDNs (a NULL-DN). Multi-valued RDNs can be formed by placing a \*(C`+\*(C' character instead of a \*(C`/\*(C' between the AttributeValueAssertions (AVAs) that specify the members of the set. Example: .Sp \f(CW\*(C`/DC=org/DC=OpenSSL/DC=users/UID=123456+CN=John Doe\*(C'
"-issuer name" 4
Item "-issuer name" X509 issuer Distinguished Name (\s-1DN\s0) of the \s-1CA\s0 server to place in the requested certificate template in \s-1IR/CR/KUR.\s0 If the NULL-DN ("/") is given then no issuer is placed in the template. .Sp If provided and neither -recipient nor -srvcert is given, the issuer \s-1DN\s0 is used as fallback recipient of outgoing \s-1CMP\s0 messages. .Sp The argument must be formatted as /type0=value0/type1=value1/type2=.... For details see the description of the -subject option.
"-days number" 4
Item "-days number" Number of days the new certificate is requested to be valid for, counting from the current time of the host. Also triggers the explicit request that the validity period starts from the current time (as seen by the host).
"-reqexts name" 4
Item "-reqexts name" Name of section in OpenSSL config file defining certificate request extensions. If the -csr option is present, these extensions augment the extensions contained the given PKCS#10 \s-1CSR,\s0 overriding any extensions with same OIDs.
"-sans spec" 4
Item "-sans spec" One or more \s-1IP\s0 addresses, \s-1DNS\s0 names, or URIs separated by commas or whitespace (where in the latter case the whole argument must be enclosed in \*(L"...\*(R") to add as Subject Alternative Name(s) (\s-1SAN\s0) certificate request extension. If the special element \*(L"critical\*(R" is given the SANs are flagged as critical. Cannot be used if any Subject Alternative Name extension is set via -reqexts.
"-san_nodefault" 4
Item "-san_nodefault" When Subject Alternative Names are not given via -sans nor defined via -reqexts, they are copied by default from the reference certificate (see -oldcert). This can be disabled by giving the -san_nodefault option.
"-policies name" 4
Item "-policies name" Name of section in OpenSSL config file defining policies to be set as certificate request extension. This option cannot be used together with -policy_oids.
"-policy_oids names" 4
Item "-policy_oids names" One or more \s-1OID\s0(s), separated by commas and/or whitespace (where in the latter case the whole argument must be enclosed in \*(L"...\*(R") to add as certificate policies request extension. This option cannot be used together with -policies.
"-policy_oids_critical" 4
Item "-policy_oids_critical" Flag the policies given with -policy_oids as critical.
"-popo number" 4
Item "-popo number" Proof-of-possession (\s-1POPO\s0) method to use for \s-1IR/CR/KUR\s0; values: \*(C`-1\*(C'..<2> where \f(CW\*(C`-1\*(C' = \s-1NONE,\s0 0 = \s-1RAVERIFIED,\s0 1 = \s-1SIGNATURE\s0 (default), 2 = \s-1KEYENC.\s0 .Sp Note that a signature-based \s-1POPO\s0 can only be produced if a private key is provided via the -newkey or -key options.
"-csr filename" 4
Item "-csr filename" PKCS#10 \s-1CSR\s0 in \s-1PEM\s0 or \s-1DER\s0 format containing a certificate request. With -cmd p10cr it is used directly in a legacy P10CR message. .Sp When used with -cmd ir, cr, or kur, it is transformed into the respective regular \s-1CMP\s0 request. In this case, a private key must be provided (with -newkey or -key) for the proof of possession (unless -popo -1 or -popo 0 is used) and the respective public key is placed in the certification request (rather than taking over the public key contained in the PKCS#10 \s-1CSR\s0). .Sp PKCS#10 \s-1CSR\s0 input may also be used with -cmd rr to specify the certificate to be revoked via the included subject name and public key.
"-out_trusted filenames|uris" 4
Item "-out_trusted filenames|uris" Trusted certificate(s) to use for validating the newly enrolled certificate. During this verification, any certificate status checking is disabled. .Sp Multiple sources may be given, separated by commas and/or whitespace (where in the latter case the whole argument must be enclosed in \*(L"...\*(R"). Each source may contain multiple certificates. .Sp The certificate verification options \fB-verify_hostname, -verify_ip, and -verify_email only affect the certificate verification enabled via this option.
"-implicit_confirm" 4
Item "-implicit_confirm" Request implicit confirmation of newly enrolled certificates.
"-disable_confirm" 4
Item "-disable_confirm" Do not send certificate confirmation message for newly enrolled certificate without requesting implicit confirmation to cope with broken servers not supporting implicit confirmation correctly. \fB\s-1WARNING:\s0 This leads to behavior violating \s-1RFC 4210.\s0
"-certout filename" 4
Item "-certout filename" The file where the newly enrolled certificate should be saved.
"-chainout filename" 4
Item "-chainout filename" The file where the chain of the newly enrolled certificate should be saved.
"Certificate enrollment and revocation options"
Subsection "Certificate enrollment and revocation options"
"-oldcert filename|uri" 4
Item "-oldcert filename|uri" The certificate to be updated (i.e., renewed or re-keyed) in Key Update Request (\s-1KUR\s0) messages or to be revoked in Revocation Request (\s-1RR\s0) messages. For \s-1KUR\s0 the certificate to be updated defaults to -cert, and the resulting certificate is called reference certificate. For \s-1RR\s0 the certificate to be revoked can also be specified using -csr. .Sp The reference certificate, if any, is also used for deriving default subject \s-1DN\s0 and Subject Alternative Names and the default issuer entry in the requested certificate template of an \s-1IR/CR/KUR.\s0 Its public key is used as a fallback in the template of certification requests. Its subject is used as sender of outgoing messages if -cert is not given. Its issuer is used as default recipient in \s-1CMP\s0 message headers if neither -recipient, -srvcert, nor -issuer is given.
"-revreason number" 4
Item "-revreason number" Set CRLReason to be included in revocation request (\s-1RR\s0); values: 0..10 or \*(C`-1\*(C' for none (which is the default). .Sp Reason numbers defined in \s-1RFC 5280\s0 are: .Sp .Vb 10 CRLReason ::= ENUMERATED { unspecified (0), keyCompromise (1), cACompromise (2), affiliationChanged (3), superseded (4), cessationOfOperation (5), certificateHold (6), -- value 7 is not used removeFromCRL (8), privilegeWithdrawn (9), aACompromise (10) } .Ve
"Message transfer options"
Subsection "Message transfer options"
"-server [http[s]://][userinfo@]host[:port][/path][?query][#fragment]" 4
Item "-server [http[s]://][userinfo@]host[:port][/path][?query][#fragment]" The \s-1DNS\s0 hostname or \s-1IP\s0 address and optionally port of the \s-1CMP\s0 server to connect to using \s-1HTTP\s0(S). This option excludes -port and -use_mock_srv. It is ignored if -rspin is given with enough filename arguments. .Sp The scheme \*(C`https\*(C' may be given only if the -tls_used option is used. In this case the default port is 443, else 80. The optional userinfo and fragment components are ignored. Any given query component is handled as part of the path component. If a path is included it provides the default value for the -path option.
"-proxy [http[s]://][userinfo@]host[:port][/path][?query][#fragment]" 4
Item "-proxy [http[s]://][userinfo@]host[:port][/path][?query][#fragment]" The \s-1HTTP\s0(S) proxy server to use for reaching the \s-1CMP\s0 server unless -no_proxy applies, see below. The proxy port defaults to 80 or 443 if the scheme is \*(C`https\*(C'; apart from that the optional \*(C`http://\*(C' or \*(C`https://\*(C' prefix is ignored (note that \s-1TLS\s0 may be selected by -tls_used), as well as any path, userinfo, and query, and fragment components. Defaults to the environment variable \*(C`http_proxy\*(C' if set, else \*(C`HTTP_PROXY\*(C' in case no \s-1TLS\s0 is used, otherwise \*(C`https_proxy\*(C' if set, else \*(C`HTTPS_PROXY\*(C'. This option is ignored if -server is not given.
"-no_proxy addresses" 4
Item "-no_proxy addresses" List of \s-1IP\s0 addresses and/or \s-1DNS\s0 names of servers not to use an \s-1HTTP\s0(S) proxy for, separated by commas and/or whitespace (where in the latter case the whole argument must be enclosed in \*(L"...\*(R"). Default is from the environment variable \*(C`no_proxy\*(C' if set, else \*(C`NO_PROXY\*(C'. This option is ignored if -server is not given.
"-recipient name" 4
Item "-recipient name" Distinguished Name (\s-1DN\s0) to use in the recipient field of \s-1CMP\s0 request message headers, i.e., the \s-1CMP\s0 server (usually the addressed \s-1CA\s0). .Sp The recipient field in the header of a \s-1CMP\s0 message is mandatory. If not given explicitly the recipient is determined in the following order: the subject of the \s-1CMP\s0 server certificate given with the -srvcert option, the -issuer option, the issuer of the certificate given with the -oldcert option, the issuer of the \s-1CMP\s0 client certificate (-cert option), as far as any of those is present, else the NULL-DN as last resort. .Sp The argument must be formatted as /type0=value0/type1=value1/type2=.... For details see the description of the -subject option.
"-path remote_path" 4
Item "-path remote_path" \s-1HTTP\s0 path at the \s-1CMP\s0 server (aka \s-1CMP\s0 alias) to use for \s-1POST\s0 requests. Defaults to any path given with -server, else "/".
"-keep_alive value" 4
Item "-keep_alive value" If the given value is 0 then \s-1HTTP\s0 connections are not kept open after receiving a response, which is the default behavior for \s-1HTTP 1.0.\s0 If the value is 1 or 2 then persistent connections are requested. If the value is 2 then persistent connections are required, i.e., in case the server does not grant them an error occurs. The default value is 1, which means preferring to keep the connection open.
"-msg_timeout seconds" 4
Item "-msg_timeout seconds" Number of seconds a \s-1CMP\s0 request-response message round trip is allowed to take before a timeout error is returned. A value <= 0 means no limitation (waiting indefinitely). Default is to use the -total_timeout setting.
"-total_timeout seconds" 4
Item "-total_timeout seconds" Maximum total number of seconds a transaction may take, including polling etc. A value <= 0 means no limitation (waiting indefinitely). Default is 0.
"Server authentication options"
Subsection "Server authentication options"
"-trusted filenames|uris" 4
Item "-trusted filenames|uris" The certificate(s), typically of root CAs, the client shall use as trust anchors when validating signature-based protection of \s-1CMP\s0 response messages. This option is ignored if the -srvcert option is given as well. It provides more flexibility than -srvcert because the \s-1CMP\s0 protection certificate of the server is not pinned but may be any certificate from which a chain to one of the given trust anchors can be constructed. .Sp If none of -trusted, -srvcert, and -secret is given, message validation errors will be thrown unless -unprotected_errors permits an exception. .Sp Multiple sources may be given, separated by commas and/or whitespace (where in the latter case the whole argument must be enclosed in \*(L"...\*(R"). Each source may contain multiple certificates. .Sp The certificate verification options \fB-verify_hostname, -verify_ip, and -verify_email have no effect on the certificate verification enabled via this option.
"-untrusted filenames|uris" 4
Item "-untrusted filenames|uris" Non-trusted intermediate \s-1CA\s0 certificate(s). Any extra certificates given with the -cert option are appended to it. All these certificates may be useful for cert path construction for the own \s-1CMP\s0 signer certificate (to include in the extraCerts field of request messages) and for the \s-1TLS\s0 client certificate (if \s-1TLS\s0 is enabled) as well as for chain building when validating server certificates (checking signature-based \s-1CMP\s0 message protection) and when validating newly enrolled certificates. .Sp Multiple filenames or URLs may be given, separated by commas and/or whitespace. Each source may contain multiple certificates.
"-srvcert filename|uri" 4
Item "-srvcert filename|uri" The specific \s-1CMP\s0 server certificate to expect and directly trust (even if it is expired) when verifying signature-based protection of \s-1CMP\s0 response messages. This pins the accepted server and results in ignoring the -trusted option. .Sp If set, the subject of the certificate is also used as default value for the recipient of \s-1CMP\s0 requests and as default value for the expected sender of \s-1CMP\s0 responses.
"-expect_sender name" 4
Item "-expect_sender name" Distinguished Name (\s-1DN\s0) expected in the sender field of incoming \s-1CMP\s0 messages. Defaults to the subject \s-1DN\s0 of the pinned -srvcert, if any. .Sp This can be used to make sure that only a particular entity is accepted as \s-1CMP\s0 message signer, and attackers are not able to use arbitrary certificates of a trusted \s-1PKI\s0 hierarchy to fraudulently pose as a \s-1CMP\s0 server. Note that this option gives slightly more freedom than setting the -srvcert, which pins the server to the holder of a particular certificate, while the expected sender name will continue to match after updates of the server cert. .Sp The argument must be formatted as /type0=value0/type1=value1/type2=.... For details see the description of the -subject option.
"-ignore_keyusage" 4
Item "-ignore_keyusage" Ignore key usage restrictions in \s-1CMP\s0 signer certificates when validating signature-based protection of incoming \s-1CMP\s0 messages. By default, \*(C`digitalSignature\*(C' must be allowed by \s-1CMP\s0 signer certificates.
"-unprotected_errors" 4
Item "-unprotected_errors" Accept missing or invalid protection of negative responses from the server. This applies to the following message types and contents:

"\(bu" 4
error messages
"\(bu" 4
negative certificate responses (\s-1IP/CP/KUP\s0)
"\(bu" 4
negative revocation responses (\s-1RP\s0)
"\(bu" 4
negative PKIConf messages

.Sp \fB\s-1WARNING:\s0 This setting leads to unspecified behavior and it is meant exclusively to allow interoperability with server implementations violating \s-1RFC 4210,\s0 e.g.:

"\(bu" 4
section 5.1.3.1 allows exceptions from protecting only for special cases: \*(L"There \s-1MAY\s0 be cases in which the PKIProtection \s-1BIT STRING\s0 is deliberately not used to protect a message [...] because other protection, external to \s-1PKIX,\s0 will be applied instead.\*(R"
"\(bu" 4
section 5.3.21 is clear on ErrMsgContent: \*(L"The \s-1CA MUST\s0 always sign it with a signature key.\*(R"
"\(bu" 4
appendix D.4 shows PKIConf message having protection

"-extracertsout filename" 4
Item "-extracertsout filename" The file where to save all certificates contained in the extraCerts field of the last received response message (except for pollRep and PKIConf).
"-cacertsout filename" 4
Item "-cacertsout filename" The file where to save any \s-1CA\s0 certificates contained in the caPubs field of the last received certificate response (i.e., \s-1IP, CP,\s0 or \s-1KUP\s0) message.
"Client authentication options"
Subsection "Client authentication options"
"-ref value" 4
Item "-ref value" Reference number/string/value to use as fallback senderKID; this is required if no sender name can be determined from the -cert or <-subject> options and is typically used when authenticating with pre-shared key (password-based \s-1MAC\s0).
"-secret arg" 4
Item "-secret arg" Provides the source of a secret value to use with MAC-based message protection. This takes precedence over the -cert and -key options. The secret is used for creating MAC-based protection of outgoing messages and for validating incoming messages that have MAC-based protection. The algorithm used by default is Password-Based Message Authentication Code (\s-1PBM\s0) as defined in \s-1RFC 4210\s0 section 5.1.3.1. .Sp For more information about the format of arg see \fBopenssl-passphrase-options\|(1).
"-cert filename|uri" 4
Item "-cert filename|uri" The client's current \s-1CMP\s0 signer certificate. Requires the corresponding key to be given with -key. .Sp The subject and the public key contained in this certificate serve as fallback values in the certificate template of \s-1IR/CR/KUR\s0 messages. .Sp The subject of this certificate will be used as sender of outgoing \s-1CMP\s0 messages, while the subject of -oldcert or -subjectName may provide fallback values. .Sp The issuer of this certificate is used as one of the recipient fallback values and as fallback issuer entry in the certificate template of \s-1IR/CR/KUR\s0 messages. .Sp When performing signature-based message protection, this \*(L"protection certificate\*(R", also called \*(L"signer certificate\*(R", will be included first in the extraCerts field of outgoing messages and the signature is done with the corresponding key. In Initialization Request (\s-1IR\s0) messages this can be used for authenticating using an external entity certificate as defined in appendix E.7 of \s-1RFC 4210.\s0 .Sp For Key Update Request (\s-1KUR\s0) messages this is also used as the certificate to be updated if the -oldcert option is not given. .Sp If the file includes further certs, they are appended to the untrusted certs because they typically constitute the chain of the client certificate, which is included in the extraCerts field in signature-protected request messages.
"-own_trusted filenames|uris" 4
Item "-own_trusted filenames|uris" If this list of certificates is provided then the chain built for the client-side \s-1CMP\s0 signer certificate given with the -cert option is verified using the given certificates as trust anchors. .Sp Multiple sources may be given, separated by commas and/or whitespace (where in the latter case the whole argument must be enclosed in \*(L"...\*(R"). Each source may contain multiple certificates. .Sp The certificate verification options \fB-verify_hostname, -verify_ip, and -verify_email have no effect on the certificate verification enabled via this option.
"-key filename|uri" 4
Item "-key filename|uri" The corresponding private key file for the client's current certificate given in the -cert option. This will be used for signature-based message protection unless the -secret option indicating MAC-based protection or -unprotected_requests is given. .Sp It is also used as a fallback for the -newkey option with \s-1IR/CR/KUR\s0 messages.
"-keypass arg" 4
Item "-keypass arg" Pass phrase source for the private key given with the -key option. Also used for -cert and -oldcert in case it is an encrypted PKCS#12 file. If not given here, the password will be prompted for if needed. .Sp For more information about the format of arg see \fBopenssl-passphrase-options\|(1).
"-digest name" 4
Item "-digest name" Specifies name of supported digest to use in \s-1RFC 4210\s0's \s-1MSG_SIG_ALG\s0 and as the one-way function (\s-1OWF\s0) in \*(C`MSG_MAC_ALG\*(C'. If applicable, this is used for message protection and proof-of-possession (\s-1POPO\s0) signatures. To see the list of supported digests, use \*(C`openssl list -digest-commands\*(C'. Defaults to \*(C`sha256\*(C'.
"-mac name" 4
Item "-mac name" Specifies the name of the \s-1MAC\s0 algorithm in \*(C`MSG_MAC_ALG\*(C'. To get the names of supported \s-1MAC\s0 algorithms use \*(C`openssl list -mac-algorithms\*(C' and possibly combine such a name with the name of a supported digest algorithm, e.g., hmacWithSHA256. Defaults to \*(C`hmac-sha1\*(C' as per \s-1RFC 4210.\s0
"-extracerts filenames|uris" 4
Item "-extracerts filenames|uris" Certificates to append in the extraCerts field when sending messages. They can be used as the default \s-1CMP\s0 signer certificate chain to include. .Sp Multiple sources may be given, separated by commas and/or whitespace (where in the latter case the whole argument must be enclosed in \*(L"...\*(R"). Each source may contain multiple certificates.
"-unprotected_requests" 4
Item "-unprotected_requests" Send request messages without CMP-level protection.
"Credentials format options"
Subsection "Credentials format options"
"-certform PEM|DER" 4
Item "-certform PEM|DER" File format to use when saving a certificate to a file. Default value is \s-1PEM.\s0
"-keyform PEM|DER|P12|ENGINE" 4
Item "-keyform PEM|DER|P12|ENGINE" The format of the key input; unspecified by default. See \*(L"Format Options\*(R" in openssl\|(1) for details.
"-otherpass arg" 4
Item "-otherpass arg" Pass phrase source for certificate given with the -trusted, -untrusted, \fB-own_trusted, -srvcert, -out_trusted, -extracerts, \fB-srv_trusted, -srv_untrusted, -rsp_extracerts, -rsp_capubs, \fB-tls_extra, and -tls_trusted options. If not given here, the password will be prompted for if needed. .Sp For more information about the format of arg see \fBopenssl-passphrase-options\|(1).
"-engine id" 4
Item "-engine id" See \*(L"Engine Options\*(R" in openssl\|(1). This option is deprecated. .Sp As an alternative to using this combination: .Sp .Vb 1 -engine {engineid} -key {keyid} -keyform ENGINE .Ve .Sp ... it's also possible to just give the key \s-1ID\s0 in \s-1URI\s0 form to -key, like this: .Sp .Vb 1 -key org.openssl.engine:{engineid}:{keyid} .Ve .Sp This applies to all options specifying keys: -key, -newkey, and \fB-tls_key.
"Provider options"
Subsection "Provider options"
"-provider name" 4
Item "-provider name"

0

"-provider-path path" 4
Item "-provider-path path"
"-propquery propq" 4
Item "-propquery propq"

See \*(L"Provider Options\*(R" in openssl\|(1), provider\|(7), and property\|(7).

"Random state options"
Subsection "Random state options"
"-rand files, -writerand file" 4
Item "-rand files, -writerand file" See \*(L"Random State Options\*(R" in openssl\|(1) for details.
"\s-1TLS\s0 connection options"
Subsection "TLS connection options"
"-tls_used" 4
Item "-tls_used" Enable using \s-1TLS\s0 (even when other TLS-related options are not set) for message exchange with \s-1CMP\s0 server via \s-1HTTP.\s0 This option is not supported with the -port option. It is ignored if the -server option is not given or -use_mock_srv is given or -rspin is given with enough filename arguments. .Sp The following TLS-related options are ignored if -tls_used is not given or does not take effect.
"-tls_cert filename|uri" 4
Item "-tls_cert filename|uri" Client's \s-1TLS\s0 certificate. If the source includes further certs they are used (along with -untrusted certs) for constructing the client cert chain provided to the \s-1TLS\s0 server.
"-tls_key filename|uri" 4
Item "-tls_key filename|uri" Private key for the client's \s-1TLS\s0 certificate.
"-tls_keypass arg" 4
Item "-tls_keypass arg" Pass phrase source for client's private \s-1TLS\s0 key -tls_key. Also used for -tls_cert in case it is an encrypted PKCS#12 file. If not given here, the password will be prompted for if needed. .Sp For more information about the format of arg see \fBopenssl-passphrase-options\|(1).
"-tls_extra filenames|uris" 4
Item "-tls_extra filenames|uris" Extra certificates to provide to \s-1TLS\s0 server during \s-1TLS\s0 handshake
"-tls_trusted filenames|uris" 4
Item "-tls_trusted filenames|uris" Trusted certificate(s) to use for validating the \s-1TLS\s0 server certificate. This implies hostname validation. .Sp Multiple sources may be given, separated by commas and/or whitespace (where in the latter case the whole argument must be enclosed in \*(L"...\*(R"). Each source may contain multiple certificates. .Sp The certificate verification options \fB-verify_hostname, -verify_ip, and -verify_email have no effect on the certificate verification enabled via this option.
"-tls_host name" 4
Item "-tls_host name" Address to be checked during hostname validation. This may be a \s-1DNS\s0 name or an \s-1IP\s0 address. If not given it defaults to the -server address.
"Client-side debugging options"
Subsection "Client-side debugging options"
"-batch" 4
Item "-batch" Do not interactively prompt for input, for instance when a password is needed. This can be useful for batch processing and testing.
"-repeat number" 4
Item "-repeat number" Invoke the command the given positive number of times with the same parameters. Default is one invocation.
"-reqin filenames" 4
Item "-reqin filenames" Take the sequence of \s-1CMP\s0 requests to send to the server from the given file(s) rather than from the sequence of requests produced internally. .Sp This option is ignored if the -rspin option is given because in the latter case no requests are actually sent. .Sp Multiple filenames may be given, separated by commas and/or whitespace (where in the latter case the whole argument must be enclosed in \*(L"...\*(R"). .Sp The files are read as far as needed to complete the transaction and filenames have been provided. If more requests are needed, the remaining ones are taken from the items at the respective position in the sequence of requests produced internally. .Sp The client needs to update the recipNonce field in the given requests (except for the first one) in order to satisfy the checks to be performed by the server. This causes re-protection (if protecting requests is required).
"-reqin_new_tid" 4
Item "-reqin_new_tid" Use a fresh transactionID for \s-1CMP\s0 request messages read using -reqin, which causes their reprotection (if protecting requests is required). This may be needed in case the sequence of requests is reused and the \s-1CMP\s0 server complains that the transaction \s-1ID\s0 has already been used.
"-reqout filenames" 4
Item "-reqout filenames" Save the sequence of \s-1CMP\s0 requests created by the client to the given file(s). These requests are not sent to the server if the -reqin option is used, too. .Sp Multiple filenames may be given, separated by commas and/or whitespace. .Sp Files are written as far as needed to save the transaction and filenames have been provided. If the transaction contains more requests, the remaining ones are not saved.
"-rspin filenames" 4
Item "-rspin filenames" Process the sequence of \s-1CMP\s0 responses provided in the given file(s), not contacting any given server, as long as enough filenames are provided to complete the transaction. .Sp Multiple filenames may be given, separated by commas and/or whitespace. .Sp Any server specified via the -server or -use_mock_srv options is contacted only if more responses are needed to complete the transaction. In this case the transaction will fail unless the server has been prepared to continue the already started transaction.
"-rspout filenames" 4
Item "-rspout filenames" Save the sequence of actually used \s-1CMP\s0 responses to the given file(s). These have been received from the server unless -rspin takes effect. .Sp Multiple filenames may be given, separated by commas and/or whitespace. .Sp Files are written as far as needed to save the responses contained in the transaction and filenames have been provided. If the transaction contains more responses, the remaining ones are not saved.
"-use_mock_srv" 4
Item "-use_mock_srv" Test the client using the internal \s-1CMP\s0 server mock-up at \s-1API\s0 level, bypassing socket-based transfer via \s-1HTTP.\s0 This excludes the -server and -port options.
"Mock server options"
Subsection "Mock server options"
"-port number" 4
Item "-port number" Act as HTTP-based \s-1CMP\s0 server mock-up listening on the given port. This excludes the -server and -use_mock_srv options. The -rspin, -rspout, -reqin, and -reqout options so far are not supported in this mode.
"-max_msgs number" 4
Item "-max_msgs number" Maximum number of \s-1CMP\s0 (request) messages the \s-1CMP HTTP\s0 server mock-up should handle, which must be nonnegative. The default value is 0, which means that no limit is imposed. In any case the server terminates on internal errors, but not when it detects a CMP-level error that it can successfully answer with an error message.
"-srv_ref value" 4
Item "-srv_ref value" Reference value to use as senderKID of server in case no -srv_cert is given.
"-srv_secret arg" 4
Item "-srv_secret arg" Password source for server authentication with a pre-shared key (secret).
"-srv_cert filename|uri" 4
Item "-srv_cert filename|uri" Certificate of the server.
"-srv_key filename|uri" 4
Item "-srv_key filename|uri" Private key used by the server for signing messages.
"-srv_keypass arg" 4
Item "-srv_keypass arg" Server private key (and cert) file pass phrase source.
"-srv_trusted filenames|uris" 4
Item "-srv_trusted filenames|uris" Trusted certificates for client authentication. .Sp The certificate verification options \fB-verify_hostname, -verify_ip, and -verify_email have no effect on the certificate verification enabled via this option.
"-srv_untrusted filenames|uris" 4
Item "-srv_untrusted filenames|uris" Intermediate \s-1CA\s0 certs that may be useful when validating client certificates.
"-rsp_cert filename|uri" 4
Item "-rsp_cert filename|uri" Certificate to be returned as mock enrollment result.
"-rsp_extracerts filenames|uris" 4
Item "-rsp_extracerts filenames|uris" Extra certificates to be included in mock certification responses.
"-rsp_capubs filenames|uris" 4
Item "-rsp_capubs filenames|uris" \s-1CA\s0 certificates to be included in mock Initialization Response (\s-1IP\s0) message.
"-poll_count number" 4
Item "-poll_count number" Number of times the client must poll before receiving a certificate.
"-check_after number" 4
Item "-check_after number" The checkAfter value (number of seconds to wait) to include in poll response.
"-grant_implicitconf" 4
Item "-grant_implicitconf" Grant implicit confirmation of newly enrolled certificate.
"-pkistatus number" 4
Item "-pkistatus number" PKIStatus to be included in server response. Valid range is 0 (accepted) .. 6 (keyUpdateWarning).
"-failure number" 4
Item "-failure number" A single failure info bit number to be included in server response. Valid range is 0 (badAlg) .. 26 (duplicateCertReq).
"-failurebits number Number representing failure bits to be included in server response. Valid range is 0 .. 2^27 - 1." 4
Item "-failurebits number Number representing failure bits to be included in server response. Valid range is 0 .. 2^27 - 1."

0

"-statusstring arg" 4
Item "-statusstring arg"

Text to be included as status string in server response.

"-send_error" 4
Item "-send_error" Force server to reply with error message.
"-send_unprotected" 4
Item "-send_unprotected" Send response messages without CMP-level protection.
"-send_unprot_err" 4
Item "-send_unprot_err" In case of negative responses, server shall send unprotected error messages, certificate responses (\s-1IP/CP/KUP\s0), and revocation responses (\s-1RP\s0). \s-1WARNING:\s0 This setting leads to behavior violating \s-1RFC 4210.\s0
"-accept_unprotected" 4
Item "-accept_unprotected" Accept missing or invalid protection of requests.
"-accept_unprot_err" 4
Item "-accept_unprot_err" Accept unprotected error messages from client. So far this has no effect because the server does not accept any error messages.
"-accept_raverified" 4
Item "-accept_raverified" Accept \s-1RAVERIFED\s0 as proof of possession (\s-1POPO\s0).
"Certificate verification options, for both \s-1CMP\s0 and \s-1TLS\s0"
Subsection "Certificate verification options, for both CMP and TLS"
"-allow_proxy_certs, -attime, -no_check_time, -check_ss_sig, -crl_check, -crl_check_all, -explicit_policy, -extended_crl, -ignore_critical, -inhibit_any, -inhibit_map, -no_alt_chains, -partial_chain, -policy, -policy_check, -policy_print, -purpose, -suiteB_128, -suiteB_128_only, -suiteB_192, -trusted_first, -use_deltas, -auth_level, -verify_depth, -verify_email, -verify_hostname, -verify_ip, -verify_name, -x509_strict -issuer_checks" 4
Item "-allow_proxy_certs, -attime, -no_check_time, -check_ss_sig, -crl_check, -crl_check_all, -explicit_policy, -extended_crl, -ignore_critical, -inhibit_any, -inhibit_map, -no_alt_chains, -partial_chain, -policy, -policy_check, -policy_print, -purpose, -suiteB_128, -suiteB_128_only, -suiteB_192, -trusted_first, -use_deltas, -auth_level, -verify_depth, -verify_email, -verify_hostname, -verify_ip, -verify_name, -x509_strict -issuer_checks" Set various options of certificate chain verification. See \*(L"Verification Options\*(R" in openssl-verification-options\|(1) for details. .Sp The certificate verification options \fB-verify_hostname, -verify_ip, and -verify_email only affect the certificate verification enabled via the -out_trusted option.
"NOTES"
Header "NOTES" When a client obtains from a \s-1CMP\s0 server \s-1CA\s0 certificates that it is going to trust, for instance via the \*(C`caPubs\*(C' field of a certificate response, authentication of the \s-1CMP\s0 server is particularly critical. So special care must be taken setting up server authentication using -trusted and related options for certificate-based authentication or -secret for MAC-based protection.

When setting up \s-1CMP\s0 configurations and experimenting with enrollment options typically various errors occur until the configuration is correct and complete. When the \s-1CMP\s0 server reports an error the client will by default check the protection of the \s-1CMP\s0 response message. Yet some \s-1CMP\s0 services tend not to protect negative responses. In this case the client will reject them, and thus their contents are not shown although they usually contain hints that would be helpful for diagnostics. For assisting in such cases the \s-1CMP\s0 client offers a workaround via the \fB-unprotected_errors option, which allows accepting such negative messages.

"EXAMPLES"
Header "EXAMPLES"
"Simple examples using the default OpenSSL configuration file"
Subsection "Simple examples using the default OpenSSL configuration file" This \s-1CMP\s0 client implementation comes with demonstrative \s-1CMP\s0 sections in the example configuration file openssl/apps/openssl.cnf, which can be used to interact conveniently with the Insta Demo \s-1CA.\s0

In order to enroll an initial certificate from that \s-1CA\s0 it is sufficient to issue the following shell commands.

.Vb 1 export OPENSSL_CONF=/path/to/openssl/apps/openssl.cnf .Ve

.Vb 2 openssl genrsa -out insta.priv.pem openssl cmp -section insta .Ve

This should produce the file insta.cert.pem containing a new certificate for the private key held in insta.priv.pem. It can be viewed using, e.g.,

.Vb 1 openssl x509 -noout -text -in insta.cert.pem .Ve

In case the network setup requires using an \s-1HTTP\s0 proxy it may be given as usual via the environment variable http_proxy or via the -proxy option in the configuration file or the \s-1CMP\s0 command-line argument -proxy, for example

.Vb 1 -proxy http://192.168.1.1:8080 .Ve

In the Insta Demo \s-1CA\s0 scenario both clients and the server may use the pre-shared secret insta and the reference value 3078 to authenticate to each other.

Alternatively, \s-1CMP\s0 messages may be protected in signature-based manner, where the trust anchor in this case is insta.ca.crt and the client may use any certificate already obtained from that \s-1CA,\s0 as specified in the [signature] section of the example configuration. This can be used in combination with the [insta] section simply by

.Vb 1 openssl cmp -section insta,signature .Ve

By default the \s-1CMP IR\s0 message type is used, yet \s-1CR\s0 works equally here. This may be specified directly at the command line:

.Vb 1 openssl cmp -section insta -cmd cr .Ve

or by referencing in addition the [cr] section of the example configuration:

.Vb 1 openssl cmp -section insta,cr .Ve

In order to update the enrolled certificate one may call

.Vb 1 openssl cmp -section insta,kur .Ve

using MAC-based protection with \s-1PBM\s0 or

.Vb 1 openssl cmp -section insta,kur,signature .Ve

using signature-based protection.

In a similar way any previously enrolled certificate may be revoked by

.Vb 1 openssl cmp -section insta,rr -trusted insta.ca.crt .Ve

or

.Vb 1 openssl cmp -section insta,rr,signature .Ve

Many more options can be given in the configuration file and/or on the command line. For instance, the -reqexts \s-1CLI\s0 option may refer to a section in the configuration file defining X.509 extensions to use in certificate requests, such as \*(C`v3_req\*(C' in openssl/apps/openssl.cnf:

.Vb 1 openssl cmp -section insta,cr -reqexts v3_req .Ve

"Certificate enrollment"
Subsection "Certificate enrollment" The following examples do not make use of a configuration file at first. They assume that a \s-1CMP\s0 server can be contacted on the local \s-1TCP\s0 port 80 and accepts requests under the alias /pkix/.

For enrolling its very first certificate the client generates a client key and sends an initial request message to the local \s-1CMP\s0 server using a pre-shared secret key for mutual authentication. In this example the client does not have the \s-1CA\s0 certificate yet, so we specify the name of the \s-1CA\s0 with the -recipient option and save any \s-1CA\s0 certificates that we may receive in the \*(C`capubs.pem\*(C' file.

In below command line usage examples the \*(C`\e\*(C' at line ends is used just for formatting; each of the command invocations should be on a single line.

.Vb 5 openssl genrsa -out cl_key.pem openssl cmp -cmd ir -server 127.0.0.1:80/pkix/ -recipient "/CN=CMPserver" \e -ref 1234 -secret pass:1234-5678 \e -newkey cl_key.pem -subject "/CN=MyName" \e -cacertsout capubs.pem -certout cl_cert.pem .Ve

"Certificate update"
Subsection "Certificate update" Then, when the client certificate and its related key pair needs to be updated, the client can send a key update request taking the certs in \*(C`capubs.pem\*(C' as trusted for authenticating the server and using the previous cert and key for its own authentication. Then it can start using the new cert and key.

.Vb 6 openssl genrsa -out cl_key_new.pem openssl cmp -cmd kur -server 127.0.0.1:80/pkix/ \e -trusted capubs.pem \e -cert cl_cert.pem -key cl_key.pem \e -newkey cl_key_new.pem -certout cl_cert.pem cp cl_key_new.pem cl_key.pem .Ve

This command sequence can be repeated as often as needed.

"Requesting information from \s-1CMP\s0 server"
Subsection "Requesting information from CMP server" Requesting \*(L"all relevant information\*(R" with an empty General Message. This prints information about all received \s-1ITAV\s0 infoTypes to stdout.

.Vb 2 openssl cmp -cmd genm -server 127.0.0.1/pkix/ -recipient "/CN=CMPserver" \e -ref 1234 -secret pass:1234-5678 .Ve

"Using a custom configuration file"
Subsection "Using a custom configuration file" For \s-1CMP\s0 client invocations, in particular for certificate enrollment, usually many parameters need to be set, which is tedious and error-prone to do on the command line. Therefore, the client offers the possibility to read options from sections of the OpenSSL config file, usually called openssl.cnf. The values found there can still be extended and even overridden by any subsequently loaded sections and on the command line.

After including in the configuration file the following sections:

.Vb 8 [cmp] server = 127.0.0.1 path = pkix/ trusted = capubs.pem cert = cl_cert.pem key = cl_key.pem newkey = cl_key.pem certout = cl_cert.pem \& [init] recipient = "/CN=CMPserver" trusted = cert = key = ref = 1234 secret = pass:1234-5678-1234-567 subject = "/CN=MyName" cacertsout = capubs.pem .Ve

the above enrollment transactions reduce to

.Vb 2 openssl cmp -section cmp,init openssl cmp -cmd kur -newkey cl_key_new.pem .Ve

and the above transaction using a general message reduces to

.Vb 1 openssl cmp -section cmp,init -cmd genm .Ve

"SEE ALSO"
Header "SEE ALSO" \fBopenssl-genrsa\|(1), openssl-ecparam\|(1), openssl-list\|(1), \fBopenssl-req\|(1), openssl-x509\|(1), x509v3_config\|(5)
"HISTORY"
Header "HISTORY" The cmp application was added in OpenSSL 3.0.

The -engine option was deprecated in OpenSSL 3.0.

"COPYRIGHT"
Header "COPYRIGHT" Copyright 2007-2023 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the Apache License 2.0 (the \*(L"License\*(R"). You may not use this file except in compliance with the License. You can obtain a copy in the file \s-1LICENSE\s0 in the source distribution or at <https://www.openssl.org/source/license.html>.