2
0

mk-ca-bundle.1 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) 2008 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
  9. .\" *
  10. .\" * This software is licensed as described in the file COPYING, which
  11. .\" * you should have received as part of this distribution. The terms
  12. .\" * are also available at http://curl.haxx.se/docs/copyright.html.
  13. .\" *
  14. .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. .\" * copies of the Software, and permit persons to whom the Software is
  16. .\" * furnished to do so, under the terms of the COPYING file.
  17. .\" *
  18. .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. .\" * KIND, either express or implied.
  20. .\" *
  21. .\" **************************************************************************
  22. .\"
  23. .TH mk-ca-bundle 1 "5 Jan 2013" "version 1.20" "mk-ca-bundle manual"
  24. .SH NAME
  25. mk-ca-bundle \- convert mozilla's certdata.txt to PEM format
  26. .SH SYNOPSIS
  27. mk-ca-bundle [bilnqtuv]
  28. .I [outputfile]
  29. .SH DESCRIPTION
  30. The mk-ca-bundle tool downloads the certdata.txt file from Mozilla's source
  31. tree over HTTP, then parses certdata.txt and extracts CA Root Certificates
  32. into PEM format. These are then processed with the OpenSSL commandline tool
  33. to produce the final ca-bundle file.
  34. The default \fIoutputfile\fP name is \fBca-bundle.crt\fP. By setting it to '-'
  35. (a single dash) you will get the output sent to STDOUT instead of a file.
  36. The PEM format this scripts uses for output makes the result readily available
  37. for use by just about all OpenSSL or GnuTLS powered applications, such as
  38. curl, wget and more.
  39. .SH OPTIONS
  40. The following options are supported:
  41. .IP -b
  42. backup an existing version of \fIoutputfilename\fP
  43. .IP -d [name]
  44. specify which Mozilla tree to pull certdata.txt from (or a custom URL). Valid
  45. names are: aurora, beta, central, mozilla, nss, release (default). They are
  46. shortcuts for which source tree to get the cert data from.
  47. .IP -f
  48. force rebuild even if certdata.txt is current (Added in version 1.17)
  49. .IP -i
  50. print version info about used modules
  51. .IP -l
  52. print license info about certdata.txt
  53. .IP -n
  54. no download of certdata.txt (to use existing)
  55. .IP -q
  56. be really quiet (no progress output at all)
  57. .IP -t
  58. include plain text listing of certificates
  59. .IP -u
  60. unlink (remove) certdata.txt after processing
  61. .IP -v
  62. be verbose and print out processed CAs
  63. .SH EXIT STATUS
  64. Returns 0 on success. Returns 1 if it fails to download data.
  65. .SH CERTDATA FORMAT
  66. The file format used by Mozilla for this trust information seems to be documented here:
  67. .nf
  68. http://p11-glue.freedesktop.org/doc/storing-trust-policy/storing-trust-existing.html
  69. .fi
  70. .SH SEE ALSO
  71. .BR curl (1)
  72. .SH HISTORY
  73. \fBmk-ca-bundle\fP is a command line tool that is shipped as part of every
  74. curl and libcurl release (see http://curl.haxx.se/). It was originally based
  75. on the parse-certs script written by Roland Krikava and was later much
  76. improved by Guenter Knauf. This manual page was initially written by Jan
  77. Schaumann \&<jschauma@netmeister.org>.