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

Unified Diff: net/data/parse_certificate_unittest/tbs_v4.pem

Issue 1279963003: Add a function for parsing RFC 5280's "TBSCertificate". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert_mapper
Patch Set: one more comment fix Created 5 years, 4 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
« no previous file with comments | « net/data/parse_certificate_unittest/tbs_v3_real.pem ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/data/parse_certificate_unittest/tbs_v4.pem
diff --git a/net/data/parse_certificate_unittest/tbs_v4.pem b/net/data/parse_certificate_unittest/tbs_v4.pem
new file mode 100644
index 0000000000000000000000000000000000000000..a884394b6aeb8415f1c7bfd39211df2dcaa0a863
--- /dev/null
+++ b/net/data/parse_certificate_unittest/tbs_v4.pem
@@ -0,0 +1,25 @@
+This is a very basic TBSCertificate which would be valid except the version
+number is v4 (3).
+
+
+
+-----BEGIN TBS CERTIFICATE-----
+MCGgAwIBAwIBATADBAEBMAMEAQUwAwQBCDADBAEKMAMEAfM=
+-----END TBS CERTIFICATE-----
+
+$ openssl asn1parse -i < [TBS CERTIFICATE]
+ 0:d=0 hl=2 l= 33 cons: SEQUENCE
+ 2:d=1 hl=2 l= 3 cons: cont [ 0 ]
+ 4:d=2 hl=2 l= 1 prim: INTEGER :03
+ 7:d=1 hl=2 l= 1 prim: INTEGER :01
+ 10:d=1 hl=2 l= 3 cons: SEQUENCE
+ 12:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:01
+ 15:d=1 hl=2 l= 3 cons: SEQUENCE
+ 17:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:05
+ 20:d=1 hl=2 l= 3 cons: SEQUENCE
+ 22:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:08
+ 25:d=1 hl=2 l= 3 cons: SEQUENCE
+ 27:d=2 hl=2 l= 1 prim: OCTET STRING :
+
+ 30:d=1 hl=2 l= 3 cons: SEQUENCE
+ 32:d=2 hl=2 l= 1 prim: OCTET STRING [HEX DUMP]:F3
« no previous file with comments | « net/data/parse_certificate_unittest/tbs_v3_real.pem ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698