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

Unified Diff: net/data/parse_certificate_unittest/tbs_explicit_v1.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, 11 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 side-by-side diff with in-line comments
Download patch
Index: net/data/parse_certificate_unittest/tbs_explicit_v1.pem
diff --git a/net/data/parse_certificate_unittest/tbs_explicit_v1.pem b/net/data/parse_certificate_unittest/tbs_explicit_v1.pem
index 67edbb3e6d5cb5d24f9915f058a59baf27fae0da..03599eaaac6db041a3665989055658b287927c8f 100644
--- a/net/data/parse_certificate_unittest/tbs_explicit_v1.pem
+++ b/net/data/parse_certificate_unittest/tbs_explicit_v1.pem
@@ -2,12 +2,6 @@ This is an otherwise valid v1 certificate, except the version has been encoded
explicitly as 0. Instead it should have been omitted.
-
------BEGIN TBS CERTIFICATE-----
-MDygAwIBAAIBATADBAEBMAMEAQUwHhcNMTIxMDE4MDMxMjAwWhcNMTMxMDE4MTQ1OTU5WjADBAG
-DMAMEAfM=
------END TBS CERTIFICATE-----
-
$ openssl asn1parse -i < [TBS CERTIFICATE]
0:d=0 hl=2 l= 60 cons: SEQUENCE
2:d=1 hl=2 l= 3 cons: cont [ 0 ]
@@ -24,3 +18,7 @@ $ openssl asn1parse -i < [TBS CERTIFICATE]
54:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:83
57:d=1 hl=2 l= 3 cons: SEQUENCE
59:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
+-----BEGIN TBS CERTIFICATE-----
+MDygAwIBAAIBATADBAEBMAMEAQUwHhcNMTIxMDE4MDMxMjAwWhcNMTMxMDE4MTQ1OTU5WjADBAG
+DMAMEAfM=
+-----END TBS CERTIFICATE-----

Powered by Google App Engine
This is Rietveld 408576698