crt/s2n/compliance/specs/raw.githubusercontent.com/FoxIO-LLC/ja4/df3c067/technical_details/JA4/alpn-extension-value.toml
raw symbols SCIP| 1 | target = "https://raw.githubusercontent.com/FoxIO-LLC/ja4/df3c067/technical_details/JA4.md#alpn-extension-value" |
| 2 | |
| 3 | # ### ALPN Extension Value: |
| 4 | # |
| 5 | # The first and last alphanumeric characters of the ALPN (Application-Layer Protocol Negotiation) first value. |
| 6 | # List of possible ALPN Values (scroll down): https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml |
| 7 | # |
| 8 | # In the above example, the first ALPN value is h2 so the first and last characters to use in the fingerprint are “h2”. If the first ALPN listed was http/1.1 then the first and last characters to use in the fingerprint would be “h1”. |
| 9 | # |
| 10 | # In Wireshark this field is located under tls.handshake.extensions_alpn_str |
| 11 | # |
| 12 | # If there is no ALPN extension, no ALPN values, or the first ALPN value is empty, then we print "00" as the value in the fingerprint. If the first ALPN value is only a single character, then that character is treated as both the first and last character. |
| 13 | # |
| 14 | # If the first or last byte of the first ALPN is non-alphanumeric (meaning not `0x30-0x39`, `0x41-0x5A`, or `0x61-0x7A`), then we print the first and last characters of the hex representation of the first ALPN instead. For example: |
| 15 | # * `0xAB` would be printed as "ab" |
| 16 | # * `0xAB 0xCD` would be printed as "ad" |
| 17 | # * `0x30 0xAB` would be printed as "3b" |
| 18 | # * `0x30 0x31 0xAB 0xCD` would be printed as "3d" |
| 19 | # * `0x30 0xAB 0xCD 0x31` would be printed as "01" |
| 20 | # |
| 21 | |
| 22 | [[spec]] |
| 23 | level = "MUST" |
| 24 | quote = ''' |
| 25 | The first and last alphanumeric characters of the ALPN (Application-Layer Protocol Negotiation) first value. |
| 26 | ''' |
| 27 | |
| 28 | [[spec]] |
| 29 | level = "MUST" |
| 30 | quote = ''' |
| 31 | If there is no ALPN extension, no ALPN values, or the first ALPN value is empty, then we print "00" as the value in the fingerprint. |
| 32 | ''' |
| 33 | |
| 34 | [[spec]] |
| 35 | level = "MUST" |
| 36 | quote = ''' |
| 37 | If the first ALPN value is only a single character, then that character is treated as both the first and last character. |
| 38 | ''' |
| 39 | |
| 40 | [[spec]] |
| 41 | level = "MUST" |
| 42 | quote = ''' |
| 43 | If the first or last byte of the first ALPN is non-alphanumeric (meaning not `0x30-0x39`, `0x41-0x5A`, or `0x61-0x7A`), then we print the first and last characters of the hex representation of the first ALPN instead. |
| 44 | ''' |