Artifactspublic-v0

curl

master
ply4 git calls76 ms289 KiB2 cachedprotocol v2
131 lines3.7 KiBRaw

NAME

mk-ca-bundle - convert Mozilla's certificate bundle to PEM format

SYNOPSIS

mk-ca-bundle [options] [output]

DESCRIPTION

This tool downloads the certdata.txt file from Mozilla's source tree over HTTPS, then parses it and extracts the included 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 command line tool to produce the final ca-bundle output file.

The default output name is ca-bundle.crt. By setting it to '-' (a single dash) you get the output sent to STDOUT instead of a file.

The PEM format this scripts uses for output makes the result readily available for use by OpenSSL or GnuTLS powered applications, such as curl and others.

OPTIONS

The following options are supported:

-b

backup an existing version of output

-d [name]

specify which Mozilla tree to pull certdata.txt from (or a custom URL). Valid names are: autoland, beta, nss, and release (default). They are shortcuts for which source tree to get the certificate data from.

-f

force rebuild even if certdata.txt is current (Added in version 1.17)

-i

print version info about used modules

-k

Allow insecure data transfer. By default (since 1.27) this command fails if the HTTPS transfer fails. This overrides that decision (and opens for man-in-the-middle attacks).

-l

print license info about certdata.txt

-m

(Added in 1.26) Include meta data comments in the output. The meta data is specific information about each certificate that is stored in the original file as comments and using this option makes those comments get passed on to the output file. The meta data is not parsed in any way by mk-ca-bundle.

(Added in 1.34) SHA-256 fingerprints are always included by default.

-n

Do not download certdata.txt - use the existing.

-p [purposes]:[levels]

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).

Valid purposes are: 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

Valid trust levels are: ALL, TRUSTED_DELEGATOR (default), NOT_TRUSTED, MUST_VERIFY_TRUST, TRUSTED

-q

be really quiet (no progress output at all)

-t

include plain text listing of certificates

-s [algorithms]

A comma separated list of signature algorithms with which to hash/fingerprint each certificate and output when run in plain text mode.

Valid algorithms are: ALL, NONE, MD5 (default), SHA1, SHA256, SHA384, SHA512

-u

unlink (remove) certdata.txt after processing

-v

be verbose and print out processed certificate authorities

-x

(Added in 1.35) Exclude list of SHA-256 fingerprints. Comma separated, case-insensitive, whitespace and ':' byte delimiters are ignored.

EXIT STATUS

Returns 0 on success. Returns 1 if it fails to download data.

FILE FORMAT

The file format used by Mozilla for this trust information is documented here.

1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Title: mk-ca-bundle
5Section: 1
6Source: mk-ca-bundle
7See-also:
8 - curl (1)
9Added-in: n/a
10---
12# NAME
14mk-ca-bundle - convert Mozilla's certificate bundle to PEM format
16# SYNOPSIS
18mk-ca-bundle [options] [output]
20# DESCRIPTION
22This tool downloads the *certdata.txt* file from Mozilla's source tree over
23HTTPS, then parses it and extracts the included certificates into PEM format.
24By default, only CA root certificates trusted to issue SSL server
25authentication certificates are extracted. These are then processed with the
26OpenSSL command line tool to produce the final ca-bundle output file.
28The default *output* name is **ca-bundle.crt**. By setting it to '-' (a single
29dash) you get the output sent to STDOUT instead of a file.
31The PEM format this scripts uses for output makes the result readily available
32for use by OpenSSL or GnuTLS powered applications, such as curl and others.
34# OPTIONS
36The following options are supported:
38## -b
40backup an existing version of *output*
42## -d [name]
44specify which Mozilla tree to pull *certdata.txt* from (or a custom URL).
45Valid names are: **autoland**, **beta**, **nss**, and **release** (default).
46They are shortcuts for which source tree to get the certificate data from.
48## -f
50force rebuild even if *certdata.txt* is current (Added in version 1.17)
52## -i
54print version info about used modules
56## -k
58Allow insecure data transfer. By default (since 1.27) this command fails if
59the HTTPS transfer fails. This overrides that decision (and opens for
60man-in-the-middle attacks).
62## -l
64print license info about *certdata.txt*
66## -m
68(Added in 1.26) Include meta data comments in the output. The meta data is
69specific information about each certificate that is stored in the original
70file as comments and using this option makes those comments get passed on to
71the output file. The meta data is not parsed in any way by mk-ca-bundle.
73(Added in 1.34) SHA-256 fingerprints are always included by default.
75## -n
77Do not download *certdata.txt* - use the existing.
79## -p [purposes]:[levels]
81list of Mozilla trust purposes and levels for certificates to include in
82output. Takes the form of a comma separated list of purposes, a colon, and a
83comma separated list of levels. The default is to include all certificates
84trusted to issue SSL Server certificates (*SERVER_AUTH:TRUSTED_DELEGATOR*).
86Valid purposes are: **ALL**, **DIGITAL_SIGNATURE**, **NON_REPUDIATION**,
87**KEY_ENCIPHERMENT**, **DATA_ENCIPHERMENT**, **KEY_AGREEMENT**,
88**KEY_CERT_SIGN**, **CRL_SIGN**, **SERVER_AUTH** (default), **CLIENT_AUTH**,
89**CODE_SIGNING**, **EMAIL_PROTECTION**, **IPSEC_END_SYSTEM**,
90**IPSEC_TUNNEL**, **IPSEC_USER**, **TIME_STAMPING**, **STEP_UP_APPROVED**
92Valid trust levels are: **ALL**, **TRUSTED_DELEGATOR** (default), **NOT_TRUSTED**,
93**MUST_VERIFY_TRUST**, **TRUSTED**
95## -q
97be really quiet (no progress output at all)
99## -t
101include plain text listing of certificates
103## -s [algorithms]
105A comma separated list of signature algorithms with which to hash/fingerprint
106each certificate and output when run in plain text mode.
108Valid algorithms are:
109ALL, NONE, MD5 (default), SHA1, SHA256, SHA384, SHA512
111## -u
113unlink (remove) *certdata.txt* after processing
115## -v
117be verbose and print out processed certificate authorities
119## -x
121(Added in 1.35) Exclude list of SHA-256 fingerprints. Comma separated,
122case-insensitive, whitespace and ':' byte delimiters are ignored.
124# EXIT STATUS
126Returns 0 on success. Returns 1 if it fails to download data.
128# FILE FORMAT
130The file format used by Mozilla for this trust information is [documented
131here](https://p11-glue.github.io/p11-glue/doc/storing-trust-policy/storing-trust-existing.html).
Diagnostics4 git calls · 76 ms
CallStatusSizeTime076 ms
discover200152 B2 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
git.response.bytes=152
git.server.agent=gitty/1.0
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch object-format
git.server.fetch=shallow filter sideband-all
git.protocol.version=2
git.pkt.frames=8
git.pkt.data=6
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=152
git.pkt.payload.max=34
ls-refs200149 B3 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=3
git.response.bytes=149
git.response.cache=UPDATING
git.response.duration_ms=3
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=149
git.pkt.payload.max=78
git.ls_refs.count=2
git.ls_refs.head=refs/heads/master
fetchblob:none · deepen 10200287 KiB · hit23 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=2
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=23
git.fetch.filter=blob:none
git.fetch.filter.requested=tree:0
git.fetch.filter.fallback=blob:none
git.fetch.filter.learned=false
git.fetch.wants=31c911efe5652725e930f4d2e60c9060e5f6646d
git.fetch.haves.count=0
git.fetch.deepen=10
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=10
git.pkt.data=8
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=293470
git.pkt.payload.max=65516
git.sideband.band1.bytes=293354
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=87
git.pack.bytes=293354
git.pack.ofs_delta=0
git.pack.ref_delta=1
git.pack.chain.max=1
git.pack.trailer=6a646bcda6740bab42e321b51998b52ea15146c0
git.pack.full=86
Open pack map
fetch2001.9 KiB · hit50 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=50
git.response.bytes=1911
git.response.cache=HIT
git.response.duration_ms=50
git.fetch.wants=b93286a169d5f8beeddbaced512ad90543a4006e
git.fetch.haves.count=0
git.fetch.deepen=0
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=3
git.pkt.data=2
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=1911
git.pkt.payload.max=1890
git.sideband.band1.bytes=1889
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0

Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.

Remote
https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/curl.git
Ref
refs/heads/master
Commit
31c911efe5652725e930f4d2e60c9060e5f6646d
cf-ray
a5e1a0f67e693cd0
Request
1f5c9199…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format