mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-04 12:37:35 +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
37
testdata/Client-TLSv12-RSA-RC4
vendored
37
testdata/Client-TLSv12-RSA-RC4
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 39 d1 22 07 3f |....Q...M..9.".?|
|
||||
00000010 57 87 49 e1 92 8f c8 45 b6 8d 49 f2 dd 91 e0 6f |W.I....E..I....o|
|
||||
00000020 86 cd 38 c4 f5 8f d1 f2 ff 13 19 20 5f 98 f8 87 |..8........ _...|
|
||||
00000030 8e 6b 63 53 67 65 88 fc e4 02 47 4d 0b 52 bc 0c |.kcSge....GM.R..|
|
||||
00000040 8a 08 23 45 74 89 ce 77 ac 15 1c 16 00 05 00 00 |..#Et..w........|
|
||||
00000000 16 03 03 00 51 02 00 00 4d 03 03 25 65 74 38 24 |....Q...M..%et8$|
|
||||
00000010 ce 00 73 69 2f cf 04 3f da 53 08 71 e6 e8 a8 b6 |..si/..?.S.q....|
|
||||
00000020 96 2b 92 24 9f e4 a1 58 d3 18 43 20 81 8a ee 32 |.+.$...X..C ...2|
|
||||
00000030 97 36 93 b8 69 15 4e b1 44 e1 33 6c 27 e9 80 91 |.6..i.N.D.3l'...|
|
||||
00000040 03 dc ac 34 42 f7 19 17 cf 6e 09 2c 00 05 00 00 |...4B....n.,....|
|
||||
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..|
|
||||
|
@ -69,15 +70,15 @@
|
|||
00000060 e6 bd 77 82 6f 23 b6 e0 bd a2 92 b7 3a ac e8 56 |..w.o#......:..V|
|
||||
00000070 f1 af 54 5e 46 87 e9 3b 33 e7 b8 28 b7 d6 c8 90 |..T^F..;3..(....|
|
||||
00000080 35 d4 1c 43 d1 30 6f 55 4e 0a 70 14 03 03 00 01 |5..C.0oUN.p.....|
|
||||
00000090 01 16 03 03 00 24 d3 d5 a4 0c ae 33 1e d4 d8 ba |.....$.....3....|
|
||||
000000a0 67 e5 93 31 e2 e9 08 c8 9e 27 d8 9b 20 d5 59 4d |g..1.....'.. .YM|
|
||||
000000b0 d0 f9 d9 bd 82 f7 62 7c 95 0b |......b|..|
|
||||
00000090 01 16 03 03 00 24 ea 4e a7 e2 1c ca 46 6c bd 6f |.....$.N....Fl.o|
|
||||
000000a0 ca 8d ab a6 46 a1 62 84 4d 30 90 39 d6 ac 54 8b |....F.b.M0.9..T.|
|
||||
000000b0 f0 c6 70 e9 bb cc 58 b9 fb fb |..p...X...|
|
||||
>>> Flow 4 (server to client)
|
||||
00000000 14 03 03 00 01 01 16 03 03 00 24 b2 af 7d da e2 |..........$..}..|
|
||||
00000010 b4 4f 9e ee 68 d4 bf eb d3 09 63 de 61 e1 c2 12 |.O..h.....c.a...|
|
||||
00000020 ba 56 d8 dc 5f 9e 31 fe 1c d4 70 2a 1a 80 3c |.V.._.1...p*..<|
|
||||
00000000 14 03 03 00 01 01 16 03 03 00 24 4d 7b 4f b2 49 |..........$M{O.I|
|
||||
00000010 36 f6 22 81 64 e4 20 c4 ea 3d 40 9e 4d 3c 7a 0e |6.".d. ..=@.M<z.|
|
||||
00000020 02 7c d8 5e d0 be de 9b 29 89 ff a3 95 44 75 |.|.^....)....Du|
|
||||
>>> Flow 5 (client to server)
|
||||
00000000 17 03 03 00 1a 43 f5 b5 0e 1b 1f 20 2a 09 27 e5 |.....C..... *.'.|
|
||||
00000010 dc 11 cf e6 07 31 2b fc 60 52 86 2b 41 b0 c2 15 |.....1+.`R.+A...|
|
||||
00000020 03 03 00 16 6a b9 06 9b c6 e9 6d ad ed 2d cc 0f |....j.....m..-..|
|
||||
00000030 bc 0a f1 0c 2d 0d 74 29 17 6b |....-.t).k|
|
||||
00000000 17 03 03 00 1a 47 65 1e de 1f a2 78 6c 3b eb 74 |.....Ge....xl;.t|
|
||||
00000010 9b 5d 13 70 93 e0 fc 6f a0 f8 12 e2 db f1 dd 15 |.].p...o........|
|
||||
00000020 03 03 00 16 df 6e 02 d7 30 ba 51 0f dd bb c6 8f |.....n..0.Q.....|
|
||||
00000030 11 35 53 f7 18 0a 19 ed 5b e6 |.5S.....[.|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue