8ea126be4d
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>
134 行
10 KiB
Plaintext
134 行
10 KiB
Plaintext
>>> Flow 1 (client to server)
|
|
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 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 00 12 |................|
|
|
00000080 00 00 |..|
|
|
>>> Flow 2 (server to client)
|
|
00000000 16 03 03 00 59 02 00 00 55 03 03 ee af 52 7b c4 |....Y...U....R{.|
|
|
00000010 c3 fd 78 e4 02 10 21 66 91 e8 be 88 2c 57 60 ef |..x...!f....,W`.|
|
|
00000020 44 06 ad 74 61 9e 62 cd 12 e9 b8 20 71 18 ff 58 |D..ta.b.... q..X|
|
|
00000030 5c 5b dd 4c dd de 33 43 ac 1f 6f c0 d4 8e c9 40 |\[.L..3C..o....@|
|
|
00000040 34 4a 96 00 4c 53 b4 32 65 17 00 a9 c0 09 00 00 |4J..LS.2e.......|
|
|
00000050 0d ff 01 00 01 00 00 0b 00 04 03 00 01 02 16 03 |................|
|
|
00000060 03 02 0e 0b 00 02 0a 00 02 07 00 02 04 30 82 02 |.............0..|
|
|
00000070 00 30 82 01 62 02 09 00 b8 bf 2d 47 a0 d2 eb f4 |.0..b.....-G....|
|
|
00000080 30 09 06 07 2a 86 48 ce 3d 04 01 30 45 31 0b 30 |0...*.H.=..0E1.0|
|
|
00000090 09 06 03 55 04 06 13 02 41 55 31 13 30 11 06 03 |...U....AU1.0...|
|
|
000000a0 55 04 08 13 0a 53 6f 6d 65 2d 53 74 61 74 65 31 |U....Some-State1|
|
|
000000b0 21 30 1f 06 03 55 04 0a 13 18 49 6e 74 65 72 6e |!0...U....Intern|
|
|
000000c0 65 74 20 57 69 64 67 69 74 73 20 50 74 79 20 4c |et Widgits Pty L|
|
|
000000d0 74 64 30 1e 17 0d 31 32 31 31 32 32 31 35 30 36 |td0...1211221506|
|
|
000000e0 33 32 5a 17 0d 32 32 31 31 32 30 31 35 30 36 33 |32Z..22112015063|
|
|
000000f0 32 5a 30 45 31 0b 30 09 06 03 55 04 06 13 02 41 |2Z0E1.0...U....A|
|
|
00000100 55 31 13 30 11 06 03 55 04 08 13 0a 53 6f 6d 65 |U1.0...U....Some|
|
|
00000110 2d 53 74 61 74 65 31 21 30 1f 06 03 55 04 0a 13 |-State1!0...U...|
|
|
00000120 18 49 6e 74 65 72 6e 65 74 20 57 69 64 67 69 74 |.Internet Widgit|
|
|
00000130 73 20 50 74 79 20 4c 74 64 30 81 9b 30 10 06 07 |s Pty Ltd0..0...|
|
|
00000140 2a 86 48 ce 3d 02 01 06 05 2b 81 04 00 23 03 81 |*.H.=....+...#..|
|
|
00000150 86 00 04 00 c4 a1 ed be 98 f9 0b 48 73 36 7e c3 |...........Hs6~.|
|
|
00000160 16 56 11 22 f2 3d 53 c3 3b 4d 21 3d cd 6b 75 e6 |.V.".=S.;M!=.ku.|
|
|
00000170 f6 b0 dc 9a df 26 c1 bc b2 87 f0 72 32 7c b3 64 |.....&.....r2|.d|
|
|
00000180 2f 1c 90 bc ea 68 23 10 7e fe e3 25 c0 48 3a 69 |/....h#.~..%.H:i|
|
|
00000190 e0 28 6d d3 37 00 ef 04 62 dd 0d a0 9c 70 62 83 |.(m.7...b....pb.|
|
|
000001a0 d8 81 d3 64 31 aa 9e 97 31 bd 96 b0 68 c0 9b 23 |...d1...1...h..#|
|
|
000001b0 de 76 64 3f 1a 5c 7f e9 12 0e 58 58 b6 5f 70 dd |.vd?.\....XX._p.|
|
|
000001c0 9b d8 ea d5 d7 f5 d5 cc b9 b6 9f 30 66 5b 66 9a |...........0f[f.|
|
|
000001d0 20 e2 27 e5 bf fe 3b 30 09 06 07 2a 86 48 ce 3d | .'...;0...*.H.=|
|
|
000001e0 04 01 03 81 8c 00 30 81 88 02 42 01 88 a2 4f eb |......0...B...O.|
|
|
000001f0 e2 45 c5 48 7d 1b ac f5 ed 98 9d ae 47 70 c0 5e |.E.H}.......Gp.^|
|
|
00000200 1b b6 2f bd f1 b6 4d b7 61 40 d3 11 a2 ce ee 0b |../...M.a@......|
|
|
00000210 7e 92 7e ff 76 9d c3 3b 7e a5 3f ce fa 10 e2 59 |~.~.v..;~.?....Y|
|
|
00000220 ec 47 2d 7c ac da 4e 97 0e 15 a0 6f d0 02 42 01 |.G-|..N....o..B.|
|
|
00000230 4d fc be 67 13 9c 2d 05 0e bd 3f a3 8c 25 c1 33 |M..g..-...?..%.3|
|
|
00000240 13 83 0d 94 06 bb d4 37 7a f6 ec 7a c9 86 2e dd |.......7z..z....|
|
|
00000250 d7 11 69 7f 85 7c 56 de fb 31 78 2b e4 c7 78 0d |..i..|V..1x+..x.|
|
|
00000260 ae cb be 9e 4e 36 24 31 7b 6a 0f 39 95 12 07 8f |....N6$1{j.9....|
|
|
00000270 2a 16 03 03 00 d7 0c 00 00 d3 03 00 17 41 04 bd |*............A..|
|
|
00000280 9c e8 70 51 83 c4 06 84 7a a6 0d 03 e3 00 57 bd |..pQ....z.....W.|
|
|
00000290 d4 20 68 3b 96 6d 23 18 66 b3 a5 21 66 ef 99 de |. h;.m#.f..!f...|
|
|
000002a0 41 77 78 f5 d7 3b 0d fb 0e 87 85 1d 93 3e 2a 40 |Awx..;.......>*@|
|
|
000002b0 fd 2c b0 02 6d 5c e7 97 d6 98 55 ff 38 ed 72 04 |.,..m\....U.8.r.|
|
|
000002c0 03 00 8a 30 81 87 02 41 6d e1 1b f8 7b 7b 00 67 |...0...Am...{{.g|
|
|
000002d0 ed 9d 5d 2d c9 75 b1 41 3b b5 03 e6 b5 7e 9e 1d |..]-.u.A;....~..|
|
|
000002e0 c9 88 c7 a1 da f8 e9 87 52 8a 37 92 02 89 45 5c |........R.7...E\|
|
|
000002f0 94 d1 4d 1d 36 a1 f0 79 76 18 d3 43 53 23 2c 3f |..M.6..yv..CS#,?|
|
|
00000300 41 c9 d9 16 90 5c 98 e6 33 02 42 01 e5 56 d3 3c |A....\..3.B..V.<|
|
|
00000310 6a d9 4e 78 6d 03 2a 93 f2 b9 3e 39 be 36 61 bb |j.Nxm.*...>9.6a.|
|
|
00000320 54 3f 3f a7 10 db 31 c6 46 13 d6 6a fb 36 93 23 |T??...1.F..j.6.#|
|
|
00000330 a6 40 28 e0 70 69 6e 3f 2b 75 15 69 4f 30 b8 ea |.@(.pin?+u.iO0..|
|
|
00000340 96 0c 83 c0 c3 78 69 9c 95 07 79 e6 54 16 03 03 |.....xi...y.T...|
|
|
00000350 00 2e 0d 00 00 26 03 01 02 40 00 1e 06 01 06 02 |.....&...@......|
|
|
00000360 06 03 05 01 05 02 05 03 04 01 04 02 04 03 03 01 |................|
|
|
00000370 03 02 03 03 02 01 02 02 02 03 00 00 0e 00 00 00 |................|
|
|
>>> Flow 3 (client to server)
|
|
00000000 16 03 03 01 fb 0b 00 01 f7 00 01 f4 00 01 f1 30 |...............0|
|
|
00000010 82 01 ed 30 82 01 58 a0 03 02 01 02 02 01 00 30 |...0..X........0|
|
|
00000020 0b 06 09 2a 86 48 86 f7 0d 01 01 05 30 26 31 10 |...*.H......0&1.|
|
|
00000030 30 0e 06 03 55 04 0a 13 07 41 63 6d 65 20 43 6f |0...U....Acme Co|
|
|
00000040 31 12 30 10 06 03 55 04 03 13 09 31 32 37 2e 30 |1.0...U....127.0|
|
|
00000050 2e 30 2e 31 30 1e 17 0d 31 31 31 32 30 38 30 37 |.0.10...11120807|
|
|
00000060 35 35 31 32 5a 17 0d 31 32 31 32 30 37 30 38 30 |5512Z..121207080|
|
|
00000070 30 31 32 5a 30 26 31 10 30 0e 06 03 55 04 0a 13 |012Z0&1.0...U...|
|
|
00000080 07 41 63 6d 65 20 43 6f 31 12 30 10 06 03 55 04 |.Acme Co1.0...U.|
|
|
00000090 03 13 09 31 32 37 2e 30 2e 30 2e 31 30 81 9c 30 |...127.0.0.10..0|
|
|
000000a0 0b 06 09 2a 86 48 86 f7 0d 01 01 01 03 81 8c 00 |...*.H..........|
|
|
000000b0 30 81 88 02 81 80 4e d0 7b 31 e3 82 64 d9 59 c0 |0.....N.{1..d.Y.|
|
|
000000c0 c2 87 a4 5e 1e 8b 73 33 c7 63 53 df 66 92 06 84 |...^..s3.cS.f...|
|
|
000000d0 f6 64 d5 8f e4 36 a7 1d 2b e8 b3 20 36 45 23 b5 |.d...6..+.. 6E#.|
|
|
000000e0 e3 95 ae ed e0 f5 20 9c 8d 95 df 7f 5a 12 ef 87 |...... .....Z...|
|
|
000000f0 e4 5b 68 e4 e9 0e 74 ec 04 8a 7f de 93 27 c4 01 |.[h...t......'..|
|
|
00000100 19 7a bd f2 dc 3d 14 ab d0 54 ca 21 0c d0 4d 6e |.z...=...T.!..Mn|
|
|
00000110 87 2e 5c c5 d2 bb 4d 4b 4f ce b6 2c f7 7e 88 ec |..\...MKO..,.~..|
|
|
00000120 7c d7 02 91 74 a6 1e 0c 1a da e3 4a 5a 2e de 13 ||...t......JZ...|
|
|
00000130 9c 4c 40 88 59 93 02 03 01 00 01 a3 32 30 30 30 |.L@.Y.......2000|
|
|
00000140 0e 06 03 55 1d 0f 01 01 ff 04 04 03 02 00 a0 30 |...U...........0|
|
|
00000150 0d 06 03 55 1d 0e 04 06 04 04 01 02 03 04 30 0f |...U..........0.|
|
|
00000160 06 03 55 1d 23 04 08 30 06 80 04 01 02 03 04 30 |..U.#..0.......0|
|
|
00000170 0b 06 09 2a 86 48 86 f7 0d 01 01 05 03 81 81 00 |...*.H..........|
|
|
00000180 36 1f b3 7a 0c 75 c9 6e 37 46 61 2b d5 bd c0 a7 |6..z.u.n7Fa+....|
|
|
00000190 4b cc 46 9a 81 58 7c 85 79 29 c8 c8 c6 67 dd 32 |K.F..X|.y)...g.2|
|
|
000001a0 56 45 2b 75 b6 e9 24 a9 50 9a be 1f 5a fa 1a 15 |VE+u..$.P...Z...|
|
|
000001b0 d9 cc 55 95 72 16 83 b9 c2 b6 8f fd 88 8c 38 84 |..U.r.........8.|
|
|
000001c0 1d ab 5d 92 31 13 4f fd 83 3b c6 9d f1 11 62 b6 |..].1.O..;....b.|
|
|
000001d0 8b ec ab 67 be c8 64 b0 11 50 46 58 17 6b 99 1c |...g..d..PFX.k..|
|
|
000001e0 d3 1d fc 06 f1 0e e5 96 a8 0c f9 78 20 b7 44 18 |...........x .D.|
|
|
000001f0 51 8d 10 7e 4f 94 67 df a3 4e 70 73 8e 90 91 85 |Q..~O.g..Nps....|
|
|
00000200 16 03 03 00 46 10 00 00 42 41 04 1e 18 37 ef 0d |....F...BA...7..|
|
|
00000210 19 51 88 35 75 71 b5 e5 54 5b 12 2e 8f 09 67 fd |.Q.5uq..T[....g.|
|
|
00000220 a7 24 20 3e b2 56 1c ce 97 28 5e f8 2b 2d 4f 9e |.$ >.V...(^.+-O.|
|
|
00000230 f1 07 9f 6c 4b 5b 83 56 e2 32 42 e9 58 b6 d7 49 |...lK[.V.2B.X..I|
|
|
00000240 a6 b5 68 1a 41 03 56 6b dc 5a 89 16 03 03 00 88 |..h.A.Vk.Z......|
|
|
00000250 0f 00 00 84 04 01 00 80 2a a8 4b 5b 57 08 92 95 |........*.K[W...|
|
|
00000260 cd a7 5d 95 18 2e 2e ef 83 84 bf 7c c2 ae 44 16 |..]........|..D.|
|
|
00000270 bc 51 ec 00 ae a0 1d 1b 0c 59 d6 0d 22 7f 12 bd |.Q.......Y.."...|
|
|
00000280 c6 ed 8f 71 51 9c 56 2a 10 fe 9d 22 c6 ae 8f 14 |...qQ.V*..."....|
|
|
00000290 1e b1 a6 0b f2 14 38 6d 7f 52 4a 7b 3b 56 84 8f |......8m.RJ{;V..|
|
|
000002a0 08 56 e8 07 ff 10 79 41 3b e5 ed 1e 67 db 9c 9f |.V....yA;...g...|
|
|
000002b0 c2 01 e7 c1 56 8f bf 27 02 f9 8a 4f cb 02 24 39 |....V..'...O..$9|
|
|
000002c0 7e c4 c7 02 62 42 72 c4 7a eb ce d3 48 72 7e 6d |~...bBr.z...Hr~m|
|
|
000002d0 40 0e d6 ea 6f 6f 11 bb 14 03 03 00 01 01 16 03 |@...oo..........|
|
|
000002e0 03 00 40 00 00 00 00 00 00 00 00 00 00 00 00 00 |..@.............|
|
|
000002f0 00 00 00 4a 5f 25 86 84 c5 50 31 5c 96 ae dc 56 |...J_%...P1\...V|
|
|
00000300 de 30 a3 39 8d 82 e9 5a fa bb a9 64 ec 63 16 55 |.0.9...Z...d.c.U|
|
|
00000310 2f 2d ac f2 cb 38 b0 47 d0 b3 54 0e be 01 4d 7f |/-...8.G..T...M.|
|
|
00000320 57 4c 62 |WLb|
|
|
>>> Flow 4 (server to client)
|
|
00000000 14 03 03 00 01 01 16 03 03 00 40 ae da 9b fe 9c |..........@.....|
|
|
00000010 ce f2 2c 5a 44 68 8b 1c fc d6 6b 7c 63 bf dd 18 |..,ZDh....k|c...|
|
|
00000020 8e 4a 1e bd 24 3f 60 1f e8 26 2b a2 a0 2e f1 8f |.J..$?`..&+.....|
|
|
00000030 b2 a7 a9 eb f0 17 4a a7 79 e4 ae 6b 12 ba 7e c5 |......J.y..k..~.|
|
|
00000040 1d 8f 10 46 cd 47 9a e6 35 46 8f |...F.G..5F.|
|
|
>>> Flow 5 (client to server)
|
|
00000000 17 03 03 00 30 00 00 00 00 00 00 00 00 00 00 00 |....0...........|
|
|
00000010 00 00 00 00 00 bf 73 92 0b 5d 45 c3 0f 23 f0 8f |......s..]E..#..|
|
|
00000020 35 a1 96 f6 5b 32 4d 2a a7 4e da 47 f1 4d 3f 39 |5...[2M*.N.G.M?9|
|
|
00000030 7b 72 06 86 ca 15 03 03 00 30 00 00 00 00 00 00 |{r.......0......|
|
|
00000040 00 00 00 00 00 00 00 00 00 00 dc 0f ca 4c 33 ef |.............L3.|
|
|
00000050 56 e6 93 69 26 08 e4 d9 43 9f d7 cd d7 69 eb 5f |V..i&...C....i._|
|
|
00000060 c7 af 4a b7 73 52 0e 66 10 e5 |..J.sR.f..|
|