mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
crypto/tls: add support for Certificate Transparency
This change adds support for serving and receiving Signed Certificate Timestamps as described in RFC 6962. The server is now capable of serving SCTs listed in the Certificate structure. The client now asks for SCTs and, if any are received, they are exposed in the ConnectionState structure. Fixes #10201 Change-Id: Ib3adae98cb4f173bc85cec04d2bdd3aa0fec70bb Reviewed-on: https://go-review.googlesource.com/8988 Reviewed-by: Adam Langley <agl@golang.org> Run-TryBot: Adam Langley <agl@golang.org> Reviewed-by: Jonathan Rudenberg <jonathan@titanous.com>
This commit is contained in:
parent
06b29738e8
commit
cf04082452
31 changed files with 1106 additions and 779 deletions
55
testdata/Client-TLSv12-ClientCert-RSA-RSA
vendored
55
testdata/Client-TLSv12-ClientCert-RSA-RSA
vendored
|
@ -1,18 +1,19 @@
|
|||
>>> Flow 1 (client to server)
|
||||
00000000 16 03 01 00 79 01 00 00 75 03 03 00 00 00 00 00 |....y...u.......|
|
||||
00000000 16 03 01 00 7d 01 00 00 79 03 03 00 00 00 00 00 |....}...y.......|
|
||||
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
|
||||
00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 1e c0 2f |.............../|
|
||||
00000030 c0 2b c0 30 c0 2c c0 11 c0 07 c0 13 c0 09 c0 14 |.+.0.,..........|
|
||||
00000040 c0 0a 00 05 00 2f 00 35 c0 12 00 0a 01 00 00 2e |...../.5........|
|
||||
00000040 c0 0a 00 05 00 2f 00 35 c0 12 00 0a 01 00 00 32 |...../.5.......2|
|
||||
00000050 00 05 00 05 01 00 00 00 00 00 0a 00 08 00 06 00 |................|
|
||||
00000060 17 00 18 00 19 00 0b 00 02 01 00 00 0d 00 0a 00 |................|
|
||||
00000070 08 04 01 04 03 02 01 02 03 ff 01 00 01 00 |..............|
|
||||
00000070 08 04 01 04 03 02 01 02 03 ff 01 00 01 00 00 12 |................|
|
||||
00000080 00 00 |..|
|
||||
>>> Flow 2 (server to client)
|
||||
00000000 16 03 03 00 51 02 00 00 4d 03 03 32 d8 c5 23 e3 |....Q...M..2..#.|
|
||||
00000010 c7 4c d9 e9 d9 bd 1d d4 70 60 df 01 46 dc ca c5 |.L......p`..F...|
|
||||
00000020 d3 1b 57 28 f0 c4 4b 1c b3 8d 13 20 4a b8 d7 eb |..W(..K.... J...|
|
||||
00000030 70 9e e5 6d 6f 8c d4 0d a4 25 3a ce 91 e0 25 68 |p..mo....%:...%h|
|
||||
00000040 6f 25 38 0d 91 57 af 28 39 9c 61 85 00 05 00 00 |o%8..W.(9.a.....|
|
||||
00000000 16 03 03 00 51 02 00 00 4d 03 03 84 42 cd 34 94 |....Q...M...B.4.|
|
||||
00000010 d7 b0 b6 b3 7d ae 2a de 73 a7 3a 28 5e e1 24 2d |....}.*.s.:(^.$-|
|
||||
00000020 b7 80 d9 5c f7 7d 3c 0b c3 7b b2 20 99 e0 4d c8 |...\.}<..{. ..M.|
|
||||
00000030 dd d8 7c 56 26 04 9d 0b ea 6b 8a e7 ee db 02 53 |..|V&....k.....S|
|
||||
00000040 0c 7f 81 a9 52 48 79 d4 f8 c5 3e 99 00 05 00 00 |....RHy...>.....|
|
||||
00000050 05 ff 01 00 01 00 16 03 03 02 be 0b 00 02 ba 00 |................|
|
||||
00000060 02 b7 00 02 b4 30 82 02 b0 30 82 02 19 a0 03 02 |.....0...0......|
|
||||
00000070 01 02 02 09 00 85 b0 bb a4 8a 7f b8 ca 30 0d 06 |.............0..|
|
||||
|
@ -103,24 +104,24 @@
|
|||
00000260 e6 bd 77 82 6f 23 b6 e0 bd a2 92 b7 3a ac e8 56 |..w.o#......:..V|
|
||||
00000270 f1 af 54 5e 46 87 e9 3b 33 e7 b8 28 b7 d6 c8 90 |..T^F..;3..(....|
|
||||
00000280 35 d4 1c 43 d1 30 6f 55 4e 0a 70 16 03 03 00 88 |5..C.0oUN.p.....|
|
||||
00000290 0f 00 00 84 04 01 00 80 3a 55 0a c6 97 2d 71 bc |........:U...-q.|
|
||||
000002a0 9d e1 ec 5b cb 3d de 64 8e fd 99 c0 55 1f d5 d1 |...[.=.d....U...|
|
||||
000002b0 ae 74 79 b8 1d 25 3e 4d 19 32 62 ca 04 82 f4 3f |.ty..%>M.2b....?|
|
||||
000002c0 7c 2b 7a 82 a6 86 2b d3 ba b0 ad 48 c4 c9 33 e6 ||+z...+....H..3.|
|
||||
000002d0 c8 2c 4a 06 75 a6 e7 49 65 53 54 33 27 55 7a 30 |.,J.u..IeST3'Uz0|
|
||||
000002e0 55 64 ef a0 d9 96 29 69 3f 90 ba b3 e4 aa 4e 5f |Ud....)i?.....N_|
|
||||
000002f0 1d 00 c2 90 c2 04 f9 9b 7f f1 e5 fd f2 1e 57 fd |..............W.|
|
||||
00000300 fc 0b 70 81 71 9a 43 9b 80 ff 96 42 f5 8d ff 2f |..p.q.C....B.../|
|
||||
00000310 4f d9 48 e2 6e bf 9e f2 14 03 03 00 01 01 16 03 |O.H.n...........|
|
||||
00000320 03 00 24 32 b3 61 bd 9a e1 21 79 60 f0 4b 6c 26 |..$2.a...!y`.Kl&|
|
||||
00000330 15 91 14 6d bc 42 9b c0 21 5f 93 2d d0 f7 db 9f |...m.B..!_.-....|
|
||||
00000340 81 60 bd d6 34 fa 31 |.`..4.1|
|
||||
00000290 0f 00 00 84 04 01 00 80 07 27 0a e8 a0 27 2d 2e |.........'...'-.|
|
||||
000002a0 9d 2d 7e 99 6f 09 64 0a 45 72 72 a8 77 46 8e 1b |.-~.o.d.Err.wF..|
|
||||
000002b0 6f 08 73 d8 09 a6 cb df 4c 0b 7d 68 ac a7 59 81 |o.s.....L.}h..Y.|
|
||||
000002c0 bd 37 a9 61 b9 cc 8c ea 19 99 35 f0 c9 4e 4a 9a |.7.a......5..NJ.|
|
||||
000002d0 46 51 75 c5 9f 2c 3b b7 4c 2e 60 77 5e fb 8b 9d |FQu..,;.L.`w^...|
|
||||
000002e0 dd 95 88 b1 08 5d e5 12 f3 56 72 31 fb a4 05 d3 |.....]...Vr1....|
|
||||
000002f0 49 6a 65 a1 64 91 7b 1a f5 d6 36 16 ca 66 c5 b8 |Ije.d.{...6..f..|
|
||||
00000300 9a 5e 11 dc 67 d3 a8 0e e9 dc a7 b6 12 71 34 eb |.^..g........q4.|
|
||||
00000310 28 94 90 ac 43 b5 a7 3b 14 03 03 00 01 01 16 03 |(...C..;........|
|
||||
00000320 03 00 24 b0 f0 38 df 6f 54 60 28 61 75 2f 4b 95 |..$..8.oT`(au/K.|
|
||||
00000330 9c 91 40 cb 57 f2 dd 9c 4f b7 ad c2 ad 14 cc fc |..@.W...O.......|
|
||||
00000340 27 e6 3c 9a a5 65 5f |'.<..e_|
|
||||
>>> Flow 4 (server to client)
|
||||
00000000 14 03 03 00 01 01 16 03 03 00 24 5c 99 fe 86 6f |..........$\...o|
|
||||
00000010 89 c3 e1 ed 24 1f a5 81 a8 fd 2a 8d 28 01 cd 86 |....$.....*.(...|
|
||||
00000020 11 48 5c 13 fe f4 29 dd ff 15 70 da 68 3b d8 |.H\...)...p.h;.|
|
||||
00000000 14 03 03 00 01 01 16 03 03 00 24 27 e5 9c 2c d2 |..........$'..,.|
|
||||
00000010 7f 81 83 0b 26 af a4 46 27 46 48 5c ea f3 ef e7 |....&..F'FH\....|
|
||||
00000020 ef cc f9 a7 90 80 57 b5 4a 45 37 0e ea 30 fd |......W.JE7..0.|
|
||||
>>> Flow 5 (client to server)
|
||||
00000000 17 03 03 00 1a a9 5b 30 f3 9d 98 b0 a6 a6 4c 52 |......[0......LR|
|
||||
00000010 35 c9 aa 88 24 12 0f b0 53 88 21 8a 39 56 62 15 |5...$...S.!.9Vb.|
|
||||
00000020 03 03 00 16 ff 5f 0a cf 48 2a bd 2f e9 db 50 bc |....._..H*./..P.|
|
||||
00000030 11 3c c8 d2 61 69 6c 84 22 bf |.<..ail.".|
|
||||
00000000 17 03 03 00 1a 0f 6f ac 25 a6 30 90 68 48 08 ed |......o.%.0.hH..|
|
||||
00000010 48 5f 65 c6 de 24 05 60 17 13 43 e6 11 fc 9f 15 |H_e..$.`..C.....|
|
||||
00000020 03 03 00 16 69 87 86 b0 6d 15 a1 c7 eb d5 bd 65 |....i...m......e|
|
||||
00000030 95 f5 2d 73 0c 29 fb 05 1b 02 |..-s.)....|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue