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

Unified Diff: net/data/parse_ocsp_unittest/good_response_next_update.pem

Issue 1541213002: Adding OCSP Parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add note about DEFAULT strictness. 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 side-by-side diff with in-line comments
Download patch
Index: net/data/parse_ocsp_unittest/good_response_next_update.pem
diff --git a/net/data/parse_ocsp_unittest/good_response_next_update.pem b/net/data/parse_ocsp_unittest/good_response_next_update.pem
new file mode 100644
index 0000000000000000000000000000000000000000..7277f775d7a61a92afce929eb8d99c00271ef711
--- /dev/null
+++ b/net/data/parse_ocsp_unittest/good_response_next_update.pem
@@ -0,0 +1,127 @@
+# Is a valid response for the cert until nextUpdate
eroman 2016/02/19 02:27:34 nit: No need for leading # in these.
svaldez 2016/02/19 15:13:55 Done.
+$ openssl asn1parse -i < [OCSP RESPONSE]
+ 0:d=0 hl=4 l= 324 cons: SEQUENCE
+ 4:d=1 hl=2 l= 1 prim: ENUMERATED :00
+ 7:d=1 hl=4 l= 317 cons: cont [ 0 ]
+ 11:d=2 hl=4 l= 313 cons: SEQUENCE
+ 15:d=3 hl=2 l= 9 prim: OBJECT :Basic OCSP Response
+ 26:d=3 hl=4 l= 298 prim: OCTET STRING
+ 0:d=0 hl=4 l= 294 cons: SEQUENCE
+ 4:d=1 hl=3 l= 144 cons: SEQUENCE
+ 7:d=2 hl=2 l= 3 cons: cont [ 0 ]
+ 9:d=3 hl=2 l= 1 prim: INTEGER :01
+ 12:d=2 hl=2 l= 20 cons: cont [ 1 ]
+ 14:d=3 hl=2 l= 18 cons: SEQUENCE
+ 16:d=4 hl=2 l= 16 cons: SET
+ 18:d=5 hl=2 l= 14 cons: SEQUENCE
+ 20:d=6 hl=2 l= 3 prim: OBJECT :commonName
+ 25:d=6 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
+ 34:d=2 hl=2 l= 15 prim: GENERALIZEDTIME :20160217114335Z
+ 51:d=2 hl=2 l= 98 cons: SEQUENCE
+ 53:d=3 hl=2 l= 96 cons: SEQUENCE
+ 55:d=4 hl=2 l= 56 cons: SEQUENCE
+ 57:d=5 hl=2 l= 7 cons: SEQUENCE
+ 59:d=6 hl=2 l= 5 prim: OBJECT :sha1
+ 66:d=5 hl=2 l= 20 prim: OCTET STRING [HEX DUMP]:02FF75DA24DE8ADD150FAB689DCCE6E6636D0901
+ 88:d=5 hl=2 l= 20 prim: OCTET STRING [HEX DUMP]:8A0A9DED379293AC0D8BC476A0E8508A52615259
+ 110:d=5 hl=2 l= 1 prim: INTEGER :03
+ 113:d=4 hl=2 l= 0 prim: cont [ 0 ]
+ 115:d=4 hl=2 l= 15 prim: GENERALIZEDTIME :20160217114335Z
+ 132:d=4 hl=2 l= 17 cons: cont [ 0 ]
+ 134:d=5 hl=2 l= 15 prim: GENERALIZEDTIME :20160217114335Z
+ 151:d=1 hl=2 l= 13 cons: SEQUENCE
+ 153:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
+ 164:d=2 hl=2 l= 0 prim: NULL
+ 166:d=1 hl=3 l= 129 prim: BIT STRING
+-----BEGIN OCSP RESPONSE-----
+MIIBRAoBAKCCAT0wggE5BgkrBgEFBQcwAQEEggEqMIIBJjCBkKADAgEBoRQwEjEQMA4GA1UEAxM
+HVGVzdCBDQRgPMjAxNjAyMTcxMTQzMzVaMGIwYDA4MAcGBSsOAwIaBBQC/3XaJN6K3RUPq2idzO
+bmY20JAQQUigqd7TeSk6wNi8R2oOhQilJhUlkCAQOAABgPMjAxNjAyMTcxMTQzMzVaoBEYDzIwM
+TYwMjE3MTE0MzM1WjANBgkqhkiG9w0BAQUFAAOBgQAtkXh1IYVHPYO2RAEEEy1Jrr4H7eo5/exm
+ceREz4vhtcQzAmAbP+Mgiahp6Ow6TUg9gZXRk5X7XmLRVClIXiC9K2bEPRXtpI3+6Wuoo7KE4C5
+E4AY3hTX44RliLcXjj+Ck2l6X+Xs3XSprnGpxqXSDwrpfit5mh1IBxwFxr7corg==
+-----END OCSP RESPONSE-----
+
+$ openssl asn1parse -i < [CA CERTIFICATE]
+ 0:d=0 hl=4 l= 408 cons: SEQUENCE
+ 4:d=1 hl=4 l= 257 cons: SEQUENCE
+ 8:d=2 hl=2 l= 3 cons: cont [ 0 ]
+ 10:d=3 hl=2 l= 1 prim: INTEGER :02
+ 13:d=2 hl=2 l= 1 prim: INTEGER :00
+ 16:d=2 hl=2 l= 13 cons: SEQUENCE
+ 18:d=3 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
+ 29:d=3 hl=2 l= 0 prim: NULL
+ 31:d=2 hl=2 l= 18 cons: SEQUENCE
+ 33:d=3 hl=2 l= 16 cons: SET
+ 35:d=4 hl=2 l= 14 cons: SEQUENCE
+ 37:d=5 hl=2 l= 3 prim: OBJECT :commonName
+ 42:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
+ 51:d=2 hl=2 l= 30 cons: SEQUENCE
+ 53:d=3 hl=2 l= 13 prim: UTCTIME :160217164335Z
+ 68:d=3 hl=2 l= 13 prim: UTCTIME :260214164335Z
+ 83:d=2 hl=2 l= 18 cons: SEQUENCE
+ 85:d=3 hl=2 l= 16 cons: SET
+ 87:d=4 hl=2 l= 14 cons: SEQUENCE
+ 89:d=5 hl=2 l= 3 prim: OBJECT :commonName
+ 94:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
+ 103:d=2 hl=3 l= 159 cons: SEQUENCE
+ 106:d=3 hl=2 l= 13 cons: SEQUENCE
+ 108:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption
+ 119:d=4 hl=2 l= 0 prim: NULL
+ 121:d=3 hl=3 l= 141 prim: BIT STRING
+ 265:d=1 hl=2 l= 13 cons: SEQUENCE
+ 267:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
+ 278:d=2 hl=2 l= 0 prim: NULL
+ 280:d=1 hl=3 l= 129 prim: BIT STRING
+-----BEGIN CA CERTIFICATE-----
+MIIBmDCCAQGgAwIBAgIBADANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDEwdUZXN0IENBMB4XDTE
+2MDIxNzE2NDMzNVoXDTI2MDIxNDE2NDMzNVowEjEQMA4GA1UEAxMHVGVzdCBDQTCBnzANBgkqhk
+iG9w0BAQEFAAOBjQAwgYkCgYEApRGdydM+hBl3FK9BMy2i0GuR3H9iASfSoirvHgSCPRJ91AbMf
+/RlOprdI8HHFqNC5FfTipY6zYnHkMaHAM5w8FdqgbDRoJmMy2a37EKHhb4s8jF76PlJrD27n+3t
+5rmyIOqhXV8tVsIKtKuXVjUsBFSmMsF8TJbv6EjtJxVLhuUCAwEAATANBgkqhkiG9w0BAQUFAAO
+BgQAZI4He2sX/RYcL3jwdDmTAyyMMmSeQX4JHdH2MptBehktuq32YG5Lb4dJJpMYvatZYmOurcD
+hduryAgVxT2mEbpbQ9oZDjZHC6AwxECSJS/HP8llURBfJU7tanXBk6NiIpkKAYm6RIUq6sodVTB
+HxcagPzH2K9s99RKXBBjL7wgA==
+-----END CA CERTIFICATE-----
+
+$ openssl asn1parse -i < [CERTIFICATE]
+ 0:d=0 hl=4 l= 410 cons: SEQUENCE
+ 4:d=1 hl=4 l= 259 cons: SEQUENCE
+ 8:d=2 hl=2 l= 3 cons: cont [ 0 ]
+ 10:d=3 hl=2 l= 1 prim: INTEGER :02
+ 13:d=2 hl=2 l= 1 prim: INTEGER :03
+ 16:d=2 hl=2 l= 13 cons: SEQUENCE
+ 18:d=3 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
+ 29:d=3 hl=2 l= 0 prim: NULL
+ 31:d=2 hl=2 l= 18 cons: SEQUENCE
+ 33:d=3 hl=2 l= 16 cons: SET
+ 35:d=4 hl=2 l= 14 cons: SEQUENCE
+ 37:d=5 hl=2 l= 3 prim: OBJECT :commonName
+ 42:d=5 hl=2 l= 7 prim: PRINTABLESTRING :Test CA
+ 51:d=2 hl=2 l= 30 cons: SEQUENCE
+ 53:d=3 hl=2 l= 13 prim: UTCTIME :160217164335Z
+ 68:d=3 hl=2 l= 13 prim: UTCTIME :260214164335Z
+ 83:d=2 hl=2 l= 20 cons: SEQUENCE
+ 85:d=3 hl=2 l= 18 cons: SET
+ 87:d=4 hl=2 l= 16 cons: SEQUENCE
+ 89:d=5 hl=2 l= 3 prim: OBJECT :commonName
+ 94:d=5 hl=2 l= 9 prim: PRINTABLESTRING :Test Cert
+ 105:d=2 hl=3 l= 159 cons: SEQUENCE
+ 108:d=3 hl=2 l= 13 cons: SEQUENCE
+ 110:d=4 hl=2 l= 9 prim: OBJECT :rsaEncryption
+ 121:d=4 hl=2 l= 0 prim: NULL
+ 123:d=3 hl=3 l= 141 prim: BIT STRING
+ 267:d=1 hl=2 l= 13 cons: SEQUENCE
+ 269:d=2 hl=2 l= 9 prim: OBJECT :sha1WithRSAEncryption
+ 280:d=2 hl=2 l= 0 prim: NULL
+ 282:d=1 hl=3 l= 129 prim: BIT STRING
+-----BEGIN CERTIFICATE-----
+MIIBmjCCAQOgAwIBAgIBAzANBgkqhkiG9w0BAQUFADASMRAwDgYDVQQDEwdUZXN0IENBMB4XDTE
+2MDIxNzE2NDMzNVoXDTI2MDIxNDE2NDMzNVowFDESMBAGA1UEAxMJVGVzdCBDZXJ0MIGfMA0GCS
+qGSIb3DQEBAQUAA4GNADCBiQKBgQCmC4zqGNC+KHEtS+PnHTwZKfnrCYycpIa2htLwJ2V+LBdtZ
+YAWNjJlPdDsayPiu0LzW2sN+E+js3mKVEX0qfzK11vO/17KkXei2G7/nzm8qgOmafyojlnQxYEY
+DXcW9WlMEAMU1MFuOkXeFwMkQUAAuOEc27BQAK7JX85346ivdQIDAQABMA0GCSqGSIb3DQEBBQU
+AA4GBADIktrU1l+Og5OsdNW01mav5ajZnpBEaIx1M5PvEd4Cf4OKhGneAXeMluLAs2Ypi4zQKHi
+Zj2YcWe5c36QDpryWQ5czcNX5zU2FLspAyD3zgUDJDIIykqV8xhph5Q8eiOgV0aM2oW4qk5AxfR
+9I9NNsEWDJcJ7OGHjRsThaOrth4
+-----END CERTIFICATE-----

Powered by Google App Engine
This is Rietveld 408576698