2 * Copyright (c) 2005 - 2007 Kungliga Tekniska Högskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
17 * 3. Neither the name of the Institute nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 /* $Heimdal: hxtool-commands.in 21343 2007-06-26 14:21:55Z lha $
37 name = "cms-create-sd"
42 argument = "certificate-store"
43 help = "certificate stores to pull certificates from"
49 argument = "signer-friendly-name"
50 help = "certificate to sign with"
55 argument = "certificate-store"
56 help = "trust anchors"
61 argument = "certificate-pool"
62 help = "certificate store to pull certificates from"
68 help = "password, prompter, or environment"
74 help = "oid that the peer support"
80 help = "content type oid"
85 help = "wrapped out-data in a ContentInfo"
90 help = "wrap out-data in PEM armor"
93 long = "detached-signature"
95 help = "create a detached signature"
100 help = "use subject name for CMS Identifier"
104 argument="in-file out-file"
105 help = "Wrap a file within a SignedData object"
108 name = "cms-verify-sd"
112 argument = "certificate-store"
113 help = "trust anchors"
119 argument = "certificate-store"
120 help = "certificate store to pull certificates from"
125 argument = "password"
126 help = "password, prompter, or environment"
129 long = "missing-revoke"
131 help = "missing CRL/OCSP is ok"
134 long = "content-info"
136 help = "unwrap in-data that's in a ContentInfo"
139 long = "signed-content"
141 help = "file containing content"
145 argument="in-file out-file"
146 help = "Verify a file within a SignedData object"
149 name = "cms-unenvelope"
154 argument = "certificate-store"
155 help = "certificate used to decrypt the data"
160 argument = "password"
161 help = "password, prompter, or environment"
164 long = "content-info"
166 help = "wrapped out-data in a ContentInfo"
169 argument="in-file out-file"
170 help = "Unenvelope a file containing a EnvelopedData object"
173 name = "cms-envelope"
174 function = "cms_create_enveloped"
179 argument = "certificate-store"
180 help = "certificates used to receive the data"
185 argument = "password"
186 help = "password, prompter, or environment"
189 long = "encryption-type"
195 long = "content-type"
198 help = "content type oid"
201 long = "content-info"
203 help = "wrapped out-data in a ContentInfo"
206 argument="in-file out-file"
207 help = "Envelope a file containing a EnvelopedData object"
211 function = "pcert_verify"
215 argument = "password"
216 help = "password, prompter, or environment"
219 long = "allow-proxy-certificate"
221 help = "allow proxy certificates"
224 long = "missing-revoke"
226 help = "missing CRL/OCSP is ok"
231 help = "time when to validate the chain"
237 help = "verbose logging"
242 help = "maximum search length of certificate trust anchor"
247 help = "match hostname to certificate"
249 argument = "cert:foo chain:cert1 chain:cert2 anchor:anchor1 anchor:anchor2"
250 help = "Verify certificate chain"
254 function = "pcert_print"
258 argument = "password"
259 help = "password, prompter, or environment"
264 help = "print the content of the certificates"
269 help = "print the information about the certificate store"
272 argument="certificate ..."
273 help = "Print certificates"
277 function = "pcert_validate"
281 argument = "password"
282 help = "password, prompter, or environment"
285 argument="certificate ..."
286 help = "Validate content of certificates"
289 name = "certificate-copy"
294 argument = "password"
295 help = "password, prompter, or environment"
300 argument = "password"
301 help = "password, prompter, or environment"
304 argument="in-certificates-1 ... out-certificate"
305 help = "Copy in certificates stores into out certificate store"
312 argument = "password"
313 help = "password, prompter, or environment"
318 argument = "certificate"
319 help = "certificate use to sign the request"
325 help = "part after host in url to put in the request"
331 help = "don't include nonce in request"
336 argument = "certificate-store"
337 help = "pool to find parent certificate in"
340 argument="outfile certs ..."
341 help = "Fetch OCSP responses for the following certs"
351 argument="certificates ..."
352 help = "Check that certificates are in OCSP file and valid"
362 argument="ocsp-response-file ..."
363 help = "Print the OCSP responses"
366 name = "request-create"
375 help = "Email address in SubjectAltName"
380 help = "Hostname or domainname in SubjectAltName"
385 help = "Type of request CRMF or PKCS10, defaults to PKCS10"
393 long = "generate-key"
400 help = "number of bits in the generated key";
405 help = "verbose status"
409 argument="output-file"
410 help = "Create a CRMF or PKCS10 request"
413 name = "request-print"
417 help = "verbose printing"
420 argument="requests ..."
421 help = "Print requests"
433 help = "search for private key"
436 long = "friendlyname"
439 help = "match on friendly name"
442 long = "keyEncipherment"
444 help = "match keyEncipherment certificates"
447 long = "digitalSignature"
449 help = "match digitalSignature certificates"
454 help = "print matches"
459 argument = "password"
460 help = "password, prompter, or environment"
463 argument="certificates ..."
464 help = "Query the certificates for a match"
473 help = "Generates random bytes and prints them to standard output"
479 help = "type of CMS algorithm"
481 name = "crypto-available"
483 help = "Print available CMS crypto types"
489 help = "type of CMS algorithm"
494 help = "source certificate limiting the choices"
497 long = "peer-cmstype"
499 help = "peer limiting cmstypes"
501 name = "crypto-select"
503 help = "Print selected CMS type"
510 help = "decode instead of encode"
513 function = "hxtool_hex"
515 help = "Encode input to hex"
521 help = "Issue a CA certificate"
526 help = "Issue a proxy certificate"
529 long = "domain-controller"
531 help = "Issue a MS domaincontroller certificate"
536 help = "Subject of issued certificate"
539 long = "ca-certificate"
541 help = "Issuing CA certificate"
546 help = "Issuing a self-signed certificate"
549 long = "ca-private-key"
551 help = "Private key for self-signed certificate"
556 help = "Issued certificate"
561 help = "Type of certificate to issue"
566 help = "Lifetime of certificate"
569 long = "serial-number"
571 help = "serial-number of certificate"
577 help = "Maximum path length (CA and proxy certificates), -1 no limit"
582 help = "DNS names this certificate is allowed to serve"
587 help = "email addresses assigned to this certificate"
590 long = "pk-init-principal"
592 help = "PK-INIT principal (for SAN)"
597 help = "Microsoft UPN (for SAN)"
602 help = "XMPP jabber id (for SAN)"
607 help = "certificate request"
610 long = "certificate-private-key"
615 long = "generate-key"
622 help = "number of bits in the generated key"
630 long = "template-certificate"
635 long = "template-fields"
639 name = "certificate-sign"
641 name = "issue-certificate"
643 function = "hxtool_ca"
645 help = "Issue a certificate"
652 argument = "password"
653 help = "password, prompter, or environment"
658 help = "verbose printing"
661 argument="certificates..."
662 help = "Test crypto system related to the certificates"
668 help = "type of statistics"
670 name = "statistic-print"
672 help = "Print statistics"
678 help = "signer certificate"
683 argument = "password"
684 help = "password, prompter, or environment"
689 help = "CRL output file"
694 help = "time the crl will be valid"
698 argument="certificates..."
699 help = "Create a CRL"
704 argument = "[command]"
707 help = "Help! I need somebody"