Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(612)

Side by Side Diff: net/data/parse_certificate_unittest/tbs_validity_both_utc_time.pem

Issue 1658693006: Normalize the PEM format used in some certificate test data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 SEQUENCE (2 elem) 1 SEQUENCE (2 elem)
2 UTCTime 2012-10-18 03:12:00 UTC 2 UTCTime 2012-10-18 03:12:00 UTC
3 UTCTime 2013-10-18 14:59:59 UTC 3 UTCTime 2013-10-18 14:59:59 UTC
4 4
5 5
6
7 -----BEGIN TBS CERTIFICATE-----
8 MDygAwIBAgIBATADBAEBMAMEAQUwHhcNMTIxMDE4MDMxMjAwWhcNMTMxMDE4MTQ1OTU5WjADBAG
9 DMAMEAfM=
10 -----END TBS CERTIFICATE-----
11
12 $ openssl asn1parse -i < [TBS CERTIFICATE] 6 $ openssl asn1parse -i < [TBS CERTIFICATE]
13 0:d=0 hl=2 l= 60 cons: SEQUENCE 7 0:d=0 hl=2 l= 60 cons: SEQUENCE
14 2:d=1 hl=2 l= 3 cons: cont [ 0 ] 8 2:d=1 hl=2 l= 3 cons: cont [ 0 ]
15 4:d=2 hl=2 l= 1 prim: INTEGER :02 9 4:d=2 hl=2 l= 1 prim: INTEGER :02
16 7:d=1 hl=2 l= 1 prim: INTEGER :01 10 7:d=1 hl=2 l= 1 prim: INTEGER :01
17 10:d=1 hl=2 l= 3 cons: SEQUENCE 11 10:d=1 hl=2 l= 3 cons: SEQUENCE
18 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01 12 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
19 15:d=1 hl=2 l= 3 cons: SEQUENCE 13 15:d=1 hl=2 l= 3 cons: SEQUENCE
20 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05 14 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
21 20:d=1 hl=2 l= 30 cons: SEQUENCE 15 20:d=1 hl=2 l= 30 cons: SEQUENCE
22 22:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z 16 22:d=2 hl=2 l= 13 prim: UTCTIME :121018031200Z
23 37:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z 17 37:d=2 hl=2 l= 13 prim: UTCTIME :131018145959Z
24 52:d=1 hl=2 l= 3 cons: SEQUENCE 18 52:d=1 hl=2 l= 3 cons: SEQUENCE
25 54:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83 19 54:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
26 57:d=1 hl=2 l= 3 cons: SEQUENCE 20 57:d=1 hl=2 l= 3 cons: SEQUENCE
27 59:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3 21 59:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
28 22 -----BEGIN TBS CERTIFICATE-----
29 23 MDygAwIBAgIBATADBAEBMAMEAQUwHhcNMTIxMDE4MDMxMjAwWhcNMTMxMDE4MTQ1OTU5WjADBAG
24 DMAMEAfM=
25 -----END TBS CERTIFICATE-----
30 26
31 -----BEGIN SERIAL NUMBER----- 27 -----BEGIN SERIAL NUMBER-----
32 AQ== 28 AQ==
33 -----END SERIAL NUMBER----- 29 -----END SERIAL NUMBER-----
34 30
35 31 $ openssl asn1parse -i < [SIGNATURE ALGORITHM]
36 32 0:d=0 hl=2 l= 3 cons: SEQUENCE
33 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
37 -----BEGIN SIGNATURE ALGORITHM----- 34 -----BEGIN SIGNATURE ALGORITHM-----
38 MAMEAQE= 35 MAMEAQE=
39 -----END SIGNATURE ALGORITHM----- 36 -----END SIGNATURE ALGORITHM-----
40 37
41 $ openssl asn1parse -i < [SIGNATURE ALGORITHM] 38 $ openssl asn1parse -i < [ISSUER]
42 0:d=0 hl=2 l= 3 cons: SEQUENCE 39 0:d=0 hl=2 l= 3 cons: SEQUENCE
43 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01 40 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
44
45
46
47 -----BEGIN ISSUER----- 41 -----BEGIN ISSUER-----
48 MAMEAQU= 42 MAMEAQU=
49 -----END ISSUER----- 43 -----END ISSUER-----
50 44
51 $ openssl asn1parse -i < [ISSUER] 45 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0
52 0:d=0 hl=2 l= 3 cons: SEQUENCE
53 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
54
55
56
57 -----BEGIN VALIDITY NOTBEFORE----- 46 -----BEGIN VALIDITY NOTBEFORE-----
58 eWVhcj0yMDEyLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0zLCBtaW51dGVzPTEyLCBzZWNvbmR 47 eWVhcj0yMDEyLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0zLCBtaW51dGVzPTEyLCBzZWNvbmR
59 zPTA= 48 zPTA=
60 -----END VALIDITY NOTBEFORE----- 49 -----END VALIDITY NOTBEFORE-----
61 50
62 VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0 51 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59
63
64
65
66 -----BEGIN VALIDITY NOTAFTER----- 52 -----BEGIN VALIDITY NOTAFTER-----
67 eWVhcj0yMDEzLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0xNCwgbWludXRlcz01OSwgc2Vjb25 53 eWVhcj0yMDEzLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0xNCwgbWludXRlcz01OSwgc2Vjb25
68 kcz01OQ== 54 kcz01OQ==
69 -----END VALIDITY NOTAFTER----- 55 -----END VALIDITY NOTAFTER-----
70 56
71 VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59 57 $ openssl asn1parse -i < [SUBJECT]
72 58 0:d=0 hl=2 l= 3 cons: SEQUENCE
73 59 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
74
75 -----BEGIN SUBJECT----- 60 -----BEGIN SUBJECT-----
76 MAMEAYM= 61 MAMEAYM=
77 -----END SUBJECT----- 62 -----END SUBJECT-----
78 63
79 $ openssl asn1parse -i < [SUBJECT] 64 $ openssl asn1parse -i < [SPKI]
80 0:d=0 hl=2 l= 3 cons: SEQUENCE 65 0:d=0 hl=2 l= 3 cons: SEQUENCE
81 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83 66 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
82
83
84
85 -----BEGIN SPKI----- 67 -----BEGIN SPKI-----
86 MAMEAfM= 68 MAMEAfM=
87 -----END SPKI----- 69 -----END SPKI-----
88
89 $ openssl asn1parse -i < [SPKI]
90 0:d=0 hl=2 l= 3 cons: SEQUENCE
91 2:d=1 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698