Artifactspublic-v0

curl

master
ply4 git calls254 ms288 KiB2 cachedprotocol v2
50 lines2.0 KiBRaw

--ssl-sessions

Use the given file to load SSL session tickets into curl's cache before starting any transfers. At the end of a successful curl run, the cached SSL sessions tickets are saved to the file, replacing any previous content.

The file does not have to exist, but curl reports an error if it is unable to create it. Unused loaded tickets are saved again, unless they get replaced or purged from the cache for space reasons.

Using a session file allows --tls-earlydata to send the first request in "0-RTT" mode, should an SSL session with the feature be found. Note that a server may not support early data. Also note that early data does not provide forward secrecy, e.g. is not as secure.

The SSL session tickets are stored as base64 encoded text, each ticket on its own line. The hostnames are cryptographically salted and hashed. While this prevents someone from easily seeing the hosts you contacted, they could still check if a specific hostname matches one of the values.

This feature requires that the underlying libcurl was built with the experimental SSL session import/export feature (SSLS-EXPORT) enabled.

The sessions in the file identify origin and used TLS configurations. Configuration parameters identified by a file path are only matched to the path, not the file's content. Updates to CA, CRL or key file contents do not invalidate previously saved sessions.

Most TLS sessions handed out by servers have a short lifetime, which limits the risk. Also, curl does not persist TLS session in this file that are tied to authentication, e.g. a client certificate. If that all is not acceptable, ssl session files should be cleared when older than the CA/CRL file used or not used at all.

1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: ssl-sessions
5Arg: <filename>
6Protocols: TLS
7Help: Load/save SSL session tickets from/to this file
8Added: 8.12.0
9Category: tls
10Multi: single
11Experimental: yes
12See-also:
13 - tls-earlydata
14Example:
15 - --ssl-sessions sessions.txt $URL
16---
18# `--ssl-sessions`
20Use the given file to load SSL session tickets into curl's cache before
21starting any transfers. At the end of a successful curl run, the cached
22SSL sessions tickets are saved to the file, replacing any previous content.
24The file does not have to exist, but curl reports an error if it is
25unable to create it. Unused loaded tickets are saved again, unless they
26get replaced or purged from the cache for space reasons.
28Using a session file allows `--tls-earlydata` to send the first request
29in "0-RTT" mode, should an SSL session with the feature be found. Note that
30a server may not support early data. Also note that early data does
31not provide forward secrecy, e.g. is not as secure.
33The SSL session tickets are stored as base64 encoded text, each ticket on
34its own line. The hostnames are cryptographically salted and hashed. While
35this prevents someone from easily seeing the hosts you contacted, they could
36still check if a specific hostname matches one of the values.
38This feature requires that the underlying libcurl was built with the
39experimental SSL session import/export feature (SSLS-EXPORT) enabled.
41The sessions in the file identify origin and used TLS configurations.
42Configuration parameters identified by a file path are only matched to the
43path, not the file's content. Updates to CA, CRL or key file contents do
44not invalidate previously saved sessions.
46Most TLS sessions handed out by servers have a short lifetime, which
47limits the risk. Also, curl does not persist TLS session in this file
48that are tied to authentication, e.g. a client certificate. If that all
49is not acceptable, ssl session files should be cleared when older than
50the CA/CRL file used or not used at all.
Diagnostics4 git calls · 254 ms
CallStatusSizeTime0254 ms
discover200152 B3 ms
git.upload-pack discover
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
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 B · hit2 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=2
git.response.bytes=149
git.response.cache=HIT
git.response.duration_ms=2
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 · hit2 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=249
git.response.bytes=293470
git.response.cache=HIT
git.response.duration_ms=2
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.1 KiB249 ms
git.upload-pack fetch
http.response.status_code=200
git.response.bytes=1134
git.response.cache=MISS
git.response.duration_ms=249
git.fetch.wants=8a0cc7da69c30765a9c506de61930998fc8178ad
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=1134
git.pkt.payload.max=1113
git.sideband.band1.bytes=1112
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
a5e3238f2d6a5aae
Request
053ce5a8…
Protocol
v2 · sha1
Agent
gitty/1.0
Filter
advertised
Fetch
shallow filter sideband-all
Capabilities
agent ls-refs fetch object-format