Imported Upstream version 7.44.0
[platform/upstream/curl.git] / docs / mk-ca-bundle.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2  "http://www.w3.org/TR/html4/loose.dtd">
3 <html><head>
4 <title>mk-ca-bundle man page</title>
5 <meta name="generator" content="roffit">
6 <STYLE type="text/css">
7 pre {
8   overflow: auto;
9   margin: 0;
10 }
11
12 P.level0, pre.level0 {
13  padding-left: 2em;
14 }
15
16 P.level1, pre.level1 {
17  padding-left: 4em;
18 }
19
20 P.level2, pre.level2 {
21  padding-left: 6em;
22 }
23
24 span.emphasis {
25  font-style: italic;
26 }
27
28 span.bold {
29  font-weight: bold;
30 }
31
32 span.manpage {
33  font-weight: bold;
34 }
35
36 h2.nroffsh {
37  background-color: #e0e0e0;
38 }
39
40 span.nroffip {
41  font-weight: bold;
42  font-size: 120%;
43  font-family: monospace;
44 }
45
46 p.roffit {
47  text-align: center;
48  font-size: 80%;
49 }
50 </STYLE>
51 </head><body>
52
53 <p class="level0"><a name="NAME"></a><h2 class="nroffsh">NAME</h2>
54 <p class="level0">mk-ca-bundle - convert mozilla's certdata.txt to PEM format <a name="SYNOPSIS"></a><h2 class="nroffsh">SYNOPSIS</h2>
55 <p class="level0">mk-ca-bundle [bilnpqstuv] <span Class="emphasis">[outputfile]</span> <a name="DESCRIPTION"></a><h2 class="nroffsh">DESCRIPTION</h2>
56 <p class="level0">The mk-ca-bundle tool downloads the certdata.txt file from Mozilla's source tree over HTTP, then parses certdata.txt and extracts certificates into PEM format.  By default, only CA root certificates trusted to issue SSL server authentication certificates are extracted. These are then processed with the OpenSSL commandline tool to produce the final ca-bundle file. 
57 <p class="level0">The default <span Class="emphasis">outputfile</span> name is <span Class="bold">ca-bundle.crt</span>. By setting it to '-' (a single dash) you will get the output sent to STDOUT instead of a file. 
58 <p class="level0">The PEM format this scripts uses for output makes the result readily available for use by just about all OpenSSL or GnuTLS powered applications, such as curl, wget and more. <a name="OPTIONS"></a><h2 class="nroffsh">OPTIONS</h2>
59 <p class="level0">The following options are supported: 
60 <p class="level0"><a name="-b"></a><span class="nroffip">-b</span> 
61 <p class="level1">backup an existing version of <span Class="emphasis">outputfilename</span> 
62 <p class="level0"><a name="-d"></a><span class="nroffip">-d [name]</span> 
63 <p class="level1">specify which Mozilla tree to pull certdata.txt from (or a custom URL). Valid names are: aurora, beta, central, mozilla, nss, release (default). They are shortcuts for which source tree to get the cert data from. 
64 <p class="level0"><a name="-f"></a><span class="nroffip">-f</span> 
65 <p class="level1">force rebuild even if certdata.txt is current (Added in version 1.17) 
66 <p class="level0"><a name="-i"></a><span class="nroffip">-i</span> 
67 <p class="level1">print version info about used modules 
68 <p class="level0"><a name="-l"></a><span class="nroffip">-l</span> 
69 <p class="level1">print license info about certdata.txt 
70 <p class="level0"><a name="-n"></a><span class="nroffip">-n</span> 
71 <p class="level1">no download of certdata.txt (to use existing) 
72 <p class="level0"><a name="-p"></a><span class="nroffip">-p [purposes]:[levels]</span> 
73 <p class="level1">list of Mozilla trust purposes and levels for certificates to include in output. Takes the form of a comma separated list of purposes, a colon, and a comma separated list of levels. The default is to include all certificates trusted to issue SSL Server certificates (SERVER_AUTH:TRUSTED_DELEGATOR). 
74 <p class="level1">(Added in version 1.21, Perl only) 
75 <p class="level1">Valid purposes are: 
76 <p class="level2">ALL, DIGITAL_SIGNATURE, NON_REPUDIATION, KEY_ENCIPHERMENT, DATA_ENCIPHERMENT, KEY_AGREEMENT, KEY_CERT_SIGN, CRL_SIGN, SERVER_AUTH (default), CLIENT_AUTH, CODE_SIGNING, EMAIL_PROTECTION, IPSEC_END_SYSTEM, IPSEC_TUNNEL, IPSEC_USER, TIME_STAMPING, STEP_UP_APPROVED 
77 <p class="level1">
78 <p class="level0"><a name=""></a><span class="nroffip"></span> 
79 <p class="level1">Valid trust levels are: 
80 <p class="level2">ALL, TRUSTED_DELEGATOR (default), NOT_TRUSTED, MUST_VERIFY_TRUST, TRUSTED 
81 <p class="level1">
82 <p class="level0"><a name="-q"></a><span class="nroffip">-q</span> 
83 <p class="level1">be really quiet (no progress output at all) 
84 <p class="level0"><a name="-t"></a><span class="nroffip">-t</span> 
85 <p class="level1">include plain text listing of certificates 
86 <p class="level0"><a name="-s"></a><span class="nroffip">-s [algorithms]</span> 
87 <p class="level1">comma separated list of signature algorithms with which to hash/fingerprint each certificate and output when run in plain text mode. 
88 <p class="level1">(Added in version 1.21, Perl only) 
89 <p class="level1">Valid algorithms are: 
90 <p class="level2">ALL, NONE, MD5 (default), SHA1, SHA256, SHA384, SHA512 
91 <p class="level1">
92 <p class="level0"><a name="-u"></a><span class="nroffip">-u</span> 
93 <p class="level1">unlink (remove) certdata.txt after processing 
94 <p class="level0"><a name="-v"></a><span class="nroffip">-v</span> 
95 <p class="level1">be verbose and print out processed CAs <a name="EXIT"></a><h2 class="nroffsh">EXIT STATUS</h2>
96 <p class="level0">Returns 0 on success. Returns 1 if it fails to download data. <a name="CERTDATA"></a><h2 class="nroffsh">CERTDATA FORMAT</h2>
97 <p class="level0">The file format used by Mozilla for this trust information seems to be documented here: <pre class="level0">
98 <a href="http://p11-glue.freedesktop.org/doc/storing-trust-policy/storing-trust-existing.html">http://p11-glue.freedesktop.org/doc/storing-trust-policy/storing-trust-existing.html</a>
99 </pre>
100
101 <p class="level0"><a name="SEE"></a><h2 class="nroffsh">SEE ALSO</h2>
102 <p class="level0"><span Class="manpage">curl (1)</span> <a name="HISTORY"></a><h2 class="nroffsh">HISTORY</h2>
103 <p class="level0"><span Class="bold">mk-ca-bundle</span> is a command line tool that is shipped as part of every curl and libcurl release (see <a href="http://curl.haxx.se/">http://curl.haxx.se/</a>). It was originally based on the parse-certs script written by Roland Krikava and was later much improved by Guenter Knauf.  This manual page was initially written by Jan Schaumann &lt;jschauma@netmeister.org&gt;. <p class="roffit">
104  This HTML page was made with <a href="http://daniel.haxx.se/projects/roffit/">roffit</a>.
105 </body></html>