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

Side by Side Diff: net/data/verify_certificate_chain_unittest/incorrect-trust-anchor.pem

Issue 2759023002: Improvements to the net/cert/internal error handling. (Closed)
Patch Set: fix comment Created 3 years, 9 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 [Created by: generate-incorrect-trust-anchor.py] 1 [Created by: generate-incorrect-trust-anchor.py]
2 2
3 Certificate chain with 1 intermediate, but the trust anchor used is 3 Certificate chain with 1 intermediate, but the trust anchor used is
4 incorrect (neither subject nor signature matches). Verification is expected to 4 incorrect (neither subject nor signature matches). Verification is expected to
5 fail. 5 fail.
6 6
7 Certificate: 7 Certificate:
8 Data: 8 Data:
9 Version: 3 (0x2) 9 Version: 3 (0x2)
10 Serial Number: 1 (0x1) 10 Serial Number: 1 (0x1)
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 150302120000Z 275 150302120000Z
276 -----BEGIN TIME----- 276 -----BEGIN TIME-----
277 MTUwMzAyMTIwMDAwWg== 277 MTUwMzAyMTIwMDAwWg==
278 -----END TIME----- 278 -----END TIME-----
279 279
280 FAIL 280 FAIL
281 -----BEGIN VERIFY_RESULT----- 281 -----BEGIN VERIFY_RESULT-----
282 RkFJTA== 282 RkFJTA==
283 -----END VERIFY_RESULT----- 283 -----END VERIFY_RESULT-----
284 284
285 [Context] Processing Certificate 285 ----- Certificate i=1 (CN=Intermediate) -----
286 index: 0 286 ERROR: Signature verification failed
287 [Error] Signature verification failed 287 ERROR: VerifySignedData failed
288 [Error] VerifySignedData failed 288 ERROR: subject does not match issuer
289
289 290
290 -----BEGIN ERRORS----- 291 -----BEGIN ERRORS-----
291 W0NvbnRleHRdIFByb2Nlc3NpbmcgQ2VydGlmaWNhdGUKICBpbmRleDogMAogICAgICBbRXJyb3JdIFNp Z25hdHVyZSB2ZXJpZmljYXRpb24gZmFpbGVkCiAgICAgIFtFcnJvcl0gVmVyaWZ5U2lnbmVkRGF0YSBm YWlsZWQK 292 LS0tLS0gQ2VydGlmaWNhdGUgaT0xIChDTj1JbnRlcm1lZGlhdGUpIC0tLS0tCkVSUk9SOiBTaWduYXR1 cmUgdmVyaWZpY2F0aW9uIGZhaWxlZApFUlJPUjogVmVyaWZ5U2lnbmVkRGF0YSBmYWlsZWQKRVJST1I6 IHN1YmplY3QgZG9lcyBub3QgbWF0Y2ggaXNzdWVyCgo=
292 -----END ERRORS----- 293 -----END ERRORS-----
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698