This document describes the keys with test_keys
that all experiments
using TLS SHOULD populate, possibly using directly the specific template
code. See this directory's README for the basic concepts.
Name | tlshandshake |
---|---|
Version | 0 |
{
"tls_handshakes": []
}
tls_handshakes
([]TLSHandshake
): list ofTLSHandshake
objects.
{
"network": "",
"address": "",
"cipher_suite": "",
"conn_id": 1231,
"failure": "ssl_invalid_hostname",
"so_error": "host_unreachable",
"negotiated_protocol": "",
"no_tls_verify": false,
"peer_certificates": [],
"server_name": "example.com",
"t0": 1.001,
"t": 1.11,
"tags": [],
"tls_version": "",
"transaction_id": 1
}
-
network
(string
; optional): The network for the handshake ("tcp"
or"udp"
). Until 2022-09-08, we incorrectly documented that this could have been either"tls"
or"quic"
but the code always used"tcp"
, so we adapted the spec to the code. On the same day, we also realized that using"udp"
instead of"quic"
would be more consistent, so we also changed"quic"
to always become"udp"
. These changes occurred during the OONI Probe v3.16.0 release cycle in ooni/probe-cli#946. -
address
(string
): The endpoint IP address (host:port) with which the handshake is performed. -
cipher_suite
(string
): the negotiated cipher suite, if any. -
conn_id
(int
; optional; since 2020-01-11; deprecated): identifier of the connection. See the discussion indf-008-netevents.md
. -
failure
(string
; nullable): if there was an error, this field is a string indicating the error, otherwise it MUST benull
. -
so_error
(string
; optional): If there was a soft error (e.g.ICMP Time Exceeded
), this field is a string indicating the error, otherwise it is omitted. -
negotiated_protocol
: (string
): the protocol negotiated with ALPN, if any. -
no_tls_verify
: (bool
): indicates if we have bypassed certificate chain validation when performing the TLS handshake. -
peer_certificates
: ([]BinaryData
): list of peer certificates in ASN.1 DER format represented using theBinaryData
object described indf-001-httpt.md
. -
server_name
: (string
; optional): server_name used as part of the TLS handshake. -
t0
(float
): number of seconds elapsed sincemeasurement_start_time
measured in the moment in which we started the operation (t - t0
gives you the amount of time spent performing the operation); -
t
(float
): number of seconds elapsed sincemeasurement_start_time
measured in the moment in whichfailure
is determined (t - t0
gives you the amount of time spent performing the operation); -
tags
([]string
; optional): list of tags for this event. This is useful to understand what part of a complex measurement generated an event. -
tls_version
(string
): the negotiated TLS version, if any. -
transaction_id
(int
; optional; since 2020-01-11): the set of operations to which this event belongs to (typically an HTTP transaction or a DNS round trip). A zero or missing value means we don't know the transaction to which this code belongs to.
In the following example we've omitted all the keys that are not relevant to the TLS data format:
{
"network": "tcp",
"address": "93.184.216.34:443",
"cipher_suite": "TLS_AES_256_GCM_SHA384",
"failure": null,
"negotiated_protocol": "h2",
"no_tls_verify": false,
"peer_certificates": [
{
"data": "MIIHRzCCBi+gAwIBAgIQD6pjEJMHvD1BSJJkDM1NmjANBgkqhkiG9w0BAQsFADBPMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMSkwJwYDVQQDEyBEaWdpQ2VydCBUTFMgUlNBIFNIQTI1NiAyMDIwIENBMTAeFw0yMjAzMTQwMDAwMDBaFw0yMzAzMTQyMzU5NTlaMIGWMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEUMBIGA1UEBxMLTG9zIEFuZ2VsZXMxQjBABgNVBAoMOUludGVybmV0wqBDb3Jwb3JhdGlvbsKgZm9ywqBBc3NpZ25lZMKgTmFtZXPCoGFuZMKgTnVtYmVyczEYMBYGA1UEAxMPd3d3LmV4YW1wbGUub3JnMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlV2WY5rlGn1fpwvuBhj0nVBcNxCxkHUG/pJG4HvaJen7YIZ1mLc7/P4snOJZiEfwWFTikHNbcUCcYiKG8JkFebZOYMc1U9PiEtVWGU4kuYuxiXpD8oMPin1B0SgrF7gKfO1//I2weJdAUjgZuXBCPAlhz2EnHddzXUtwm9XuOLO/Y6LATVMsbp8/lXnfo/bX0UgJ7C0aVqOu07A0Vr6OkPxwWmOvF3cRKhVCM7U4B51KK+IsWRLm8cVW1IaXjwhGzW7BR6EI3sxCQ4Wnc6HVPSgmomLWWWkIGFPAwcWUB4NC12yhCO5iW/dxNMWNLMRVtnZAyq6FpZ8wFK6j4OMw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PgK2fPOre3qGNm+499iTcc+G33Mw+nur7SpZyEKEOxEXGlLzyQ4UfaJbcme6ce1XR2bFuAJKZTRei9AqPCCcUZlM51Ke92sRKw2Sfh3oius2FkOH6ipjv3U/697EA7sKPPcw7+uvTPyLNhBzPvOk",
"format": "base64"
}
],
"server_name": "example.com",
"t0": 0.601812,
"t": 0.900702,
"tags": [],
"tls_version": "TLSv1.3",
"transaction_id": 4
}