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

Side by Side Diff: net/base/test_certificate_data.h

Issue 11579002: Add X509Certificate::IsIssuedByEncoded() (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: simple rebase to check that everything's still ok Created 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/base/x509_cert_types_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 namespace { 5 namespace {
6 6
7 // This is the SHA1 hash of the SubjectPublicKeyInfo of nist.der. 7 // This is the SHA1 hash of the SubjectPublicKeyInfo of nist.der.
8 static const char kNistSPKIHash[] = 8 static const char kNistSPKIHash[] =
9 "\x15\x60\xde\x65\x4e\x03\x9f\xd0\x08\x82" 9 "\x15\x60\xde\x65\x4e\x03\x9f\xd0\x08\x82"
10 "\xa9\x6a\xc4\x65\x8e\x6f\x92\x06\x84\x35"; 10 "\xa9\x6a\xc4\x65\x8e\x6f\x92\x06\x84\x35";
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 0x9e, 0x38, 0x05, 0x9d, 0x52, 0x60, 0xa9, 0x99, 0x0a, 0x81, 0xb4, 0x98, 462 0x9e, 0x38, 0x05, 0x9d, 0x52, 0x60, 0xa9, 0x99, 0x0a, 0x81, 0xb4, 0x98,
463 0x90, 0x1d, 0xae, 0xbb, 0x4a, 0xd7, 0xb9, 0xdc, 0x88, 0x9e, 0x37, 0x78, 463 0x90, 0x1d, 0xae, 0xbb, 0x4a, 0xd7, 0xb9, 0xdc, 0x88, 0x9e, 0x37, 0x78,
464 0x41, 0x5b, 0xf7, 0x82, 0xa5, 0xf2, 0xba, 0x41, 0x25, 0x5a, 0x90, 0x1a, 464 0x41, 0x5b, 0xf7, 0x82, 0xa5, 0xf2, 0xba, 0x41, 0x25, 0x5a, 0x90, 0x1a,
465 0x1e, 0x45, 0x38, 0xa1, 0x52, 0x58, 0x75, 0x94, 0x26, 0x44, 0xfb, 0x20, 465 0x1e, 0x45, 0x38, 0xa1, 0x52, 0x58, 0x75, 0x94, 0x26, 0x44, 0xfb, 0x20,
466 0x07, 0xba, 0x44, 0xcc, 0xe5, 0x4a, 0x2d, 0x72, 0x3f, 0x98, 0x47, 0xf6, 466 0x07, 0xba, 0x44, 0xcc, 0xe5, 0x4a, 0x2d, 0x72, 0x3f, 0x98, 0x47, 0xf6,
467 0x26, 0xdc, 0x05, 0x46, 0x05, 0x07, 0x63, 0x21, 0xab, 0x46, 0x9b, 0x9c, 467 0x26, 0xdc, 0x05, 0x46, 0x05, 0x07, 0x63, 0x21, 0xab, 0x46, 0x9b, 0x9c,
468 0x78, 0xd5, 0x54, 0x5b, 0x3d, 0x0c, 0x1e, 0xc8, 0x64, 0x8c, 0xb5, 0x50, 468 0x78, 0xd5, 0x54, 0x5b, 0x3d, 0x0c, 0x1e, 0xc8, 0x64, 0x8c, 0xb5, 0x50,
469 0x23, 0x82, 0x6f, 0xdb, 0xb8, 0x22, 0x1c, 0x43, 0x96, 0x07, 0xa8, 0xbb 469 0x23, 0x82, 0x6f, 0xdb, 0xb8, 0x22, 0x1c, 0x43, 0x96, 0x07, 0xa8, 0xbb
470 }; 470 };
471 471
472 // DER-encoded X.509 DistinguishedNames.
473 //
474 // To output the subject or issuer of a certificate:
475 //
476 // openssl asn1parse -i -inform DER -in <cert>
477 //
478 // The output will contain
479 // SEQUENCE [This is the issuer name]
480 // ...
481 // SEQUENCE [This is the validity period]
482 // UTCTIME (or GENERALTIME)
483 // UTCTIME
484 // SEQUENCE [This is the subject]
485 // ...
486 //
487 // The OFFSET is the first column before the column, e.g. for '21:d=2', the
488 // offset is 21 for the SEQUENCE you're interested in.
489 // The LENGTH is 'hl + l'.
490 //
491 // To generate the table, then use the following for a DER-encoded
492 // certificate:
493 //
494 // xxd -i -s $OFFSET -l $LENGTH <cert>
495 //
496 // For PEM certificates, convert them to DER before, as in:
497 //
498 // openssl x509 -inform PEM -outform DER -in <cert> |
499 // xxd -i -s $OFFSET -l $LENGTH
500 //
501
502 // 0:d=0 hl=2 l= 95 cons: SEQUENCE
503 // 2:d=1 hl=2 l= 11 cons: SET
504 // 4:d=2 hl=2 l= 9 cons: SEQUENCE
505 // 6:d=3 hl=2 l= 3 prim: OBJECT :countryName
506 // 11:d=3 hl=2 l= 2 prim: PRINTABLESTRING :US
507 // 15:d=1 hl=2 l= 23 cons: SET
508 // 17:d=2 hl=2 l= 21 cons: SEQUENCE
509 // 19:d=3 hl=2 l= 3 prim: OBJECT :organizationName
510 // 24:d=3 hl=2 l= 14 prim: PRINTABLESTRING :VeriSign, Inc.
511 // 40:d=1 hl=2 l= 55 cons: SET
512 // 42:d=2 hl=2 l= 53 cons: SEQUENCE
513 // 44:d=3 hl=2 l= 3 prim: OBJECT :organizationalUnitName
514 // 49:d=3 hl=2 l= 46 prim: PRINTABLESTRING :
515 // Class 1 Public Primary Certification Authority
516 const uint8 VARIABLE_IS_NOT_USED VerisignDN[] = {
517 0x30, 0x5f, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
518 0x02, 0x55, 0x53, 0x31, 0x17, 0x30, 0x15, 0x06, 0x03, 0x55, 0x04, 0x0a,
519 0x13, 0x0e, 0x56, 0x65, 0x72, 0x69, 0x53, 0x69, 0x67, 0x6e, 0x2c, 0x20,
520 0x49, 0x6e, 0x63, 0x2e, 0x31, 0x37, 0x30, 0x35, 0x06, 0x03, 0x55, 0x04,
521 0x0b, 0x13, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x20, 0x31, 0x20, 0x50,
522 0x75, 0x62, 0x6c, 0x69, 0x63, 0x20, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72,
523 0x79, 0x20, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
524 0x69, 0x6f, 0x6e, 0x20, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74,
525 0x79
526 };
527
528 // 0:d=0 hl=2 l= 125 cons: SEQUENCE
529 // 2:d=1 hl=2 l= 11 cons: SET
530 // 4:d=2 hl=2 l= 9 cons: SEQUENCE
531 // 6:d=3 hl=2 l= 3 prim: OBJECT :countryName
532 // 11:d=3 hl=2 l= 2 prim: PRINTABLESTRING :IL
533 // 15:d=1 hl=2 l= 22 cons: SET
534 // 17:d=2 hl=2 l= 20 cons: SEQUENCE
535 // 19:d=3 hl=2 l= 3 prim: OBJECT :organizationName
536 // 24:d=3 hl=2 l= 13 prim: PRINTABLESTRING :StartCom Ltd.
537 // 39:d=1 hl=2 l= 43 cons: SET
538 // 41:d=2 hl=2 l= 41 cons: SEQUENCE
539 // 43:d=3 hl=2 l= 3 prim: OBJECT :organizationalUnitName
540 // 48:d=3 hl=2 l= 34 prim: PRINTABLESTRING :
541 // Secure Digital Certificate Signing
542 // 84:d=1 hl=2 l= 41 cons: SET
543 // 86:d=2 hl=2 l= 39 cons: SEQUENCE
544 // 88:d=3 hl=2 l= 3 prim: OBJECT :commonName
545 // 93:d=3 hl=2 l= 32 prim: PRINTABLESTRING :
546 // StartCom Certification Authority
547 const uint8 VARIABLE_IS_NOT_USED StartComDN[] = {
548 0x30, 0x7d, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
549 0x02, 0x49, 0x4c, 0x31, 0x16, 0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x0a,
550 0x13, 0x0d, 0x53, 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x6d, 0x20, 0x4c,
551 0x74, 0x64, 0x2e, 0x31, 0x2b, 0x30, 0x29, 0x06, 0x03, 0x55, 0x04, 0x0b,
552 0x13, 0x22, 0x53, 0x65, 0x63, 0x75, 0x72, 0x65, 0x20, 0x44, 0x69, 0x67,
553 0x69, 0x74, 0x61, 0x6c, 0x20, 0x43, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
554 0x63, 0x61, 0x74, 0x65, 0x20, 0x53, 0x69, 0x67, 0x6e, 0x69, 0x6e, 0x67,
555 0x31, 0x29, 0x30, 0x27, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x20, 0x53,
556 0x74, 0x61, 0x72, 0x74, 0x43, 0x6f, 0x6d, 0x20, 0x43, 0x65, 0x72, 0x74,
557 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x41, 0x75,
558 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79
559 };
560
561 // 0:d=0 hl=3 l= 174 cons: SEQUENCE
562 // 3:d=1 hl=2 l= 11 cons: SET
563 // 5:d=2 hl=2 l= 9 cons: SEQUENCE
564 // 7:d=3 hl=2 l= 3 prim: OBJECT :countryName
565 // 12:d=3 hl=2 l= 2 prim: PRINTABLESTRING :US
566 // 16:d=1 hl=2 l= 11 cons: SET
567 // 18:d=2 hl=2 l= 9 cons: SEQUENCE
568 // 20:d=3 hl=2 l= 3 prim: OBJECT :stateOrProvinceName
569 // 25:d=3 hl=2 l= 2 prim: PRINTABLESTRING :UT
570 // 29:d=1 hl=2 l= 23 cons: SET
571 // 31:d=2 hl=2 l= 21 cons: SEQUENCE
572 // 33:d=3 hl=2 l= 3 prim: OBJECT :localityName
573 // 38:d=3 hl=2 l= 14 prim: PRINTABLESTRING :Salt Lake City
574 // 54:d=1 hl=2 l= 30 cons: SET
575 // 56:d=2 hl=2 l= 28 cons: SEQUENCE
576 // 58:d=3 hl=2 l= 3 prim: OBJECT :organizationName
577 // 63:d=3 hl=2 l= 21 prim: PRINTABLESTRING :The USERTRUST Network
578 // 86:d=1 hl=2 l= 33 cons: SET
579 // 88:d=2 hl=2 l= 31 cons: SEQUENCE
580 // 90:d=3 hl=2 l= 3 prim: OBJECT :organizationalUnitName
581 // 95:d=3 hl=2 l= 24 prim: PRINTABLESTRING :http://www.usertrust.com
582 //121:d=1 hl=2 l= 54 cons: SET
583 //123:d=2 hl=2 l= 52 cons: SEQUENCE
584 //125:d=3 hl=2 l= 3 prim: OBJECT :commonName
585 //130:d=3 hl=2 l= 45 prim: PRINTABLESTRING :
586 // UTN-USERFirst-Client Authentication and Email
587 const uint8 VARIABLE_IS_NOT_USED UserTrustDN[] = {
588 0x30, 0x81, 0xae, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06,
589 0x13, 0x02, 0x55, 0x53, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
590 0x08, 0x13, 0x02, 0x55, 0x54, 0x31, 0x17, 0x30, 0x15, 0x06, 0x03, 0x55,
591 0x04, 0x07, 0x13, 0x0e, 0x53, 0x61, 0x6c, 0x74, 0x20, 0x4c, 0x61, 0x6b,
592 0x65, 0x20, 0x43, 0x69, 0x74, 0x79, 0x31, 0x1e, 0x30, 0x1c, 0x06, 0x03,
593 0x55, 0x04, 0x0a, 0x13, 0x15, 0x54, 0x68, 0x65, 0x20, 0x55, 0x53, 0x45,
594 0x52, 0x54, 0x52, 0x55, 0x53, 0x54, 0x20, 0x4e, 0x65, 0x74, 0x77, 0x6f,
595 0x72, 0x6b, 0x31, 0x21, 0x30, 0x1f, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x13,
596 0x18, 0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e,
597 0x75, 0x73, 0x65, 0x72, 0x74, 0x72, 0x75, 0x73, 0x74, 0x2e, 0x63, 0x6f,
598 0x6d, 0x31, 0x36, 0x30, 0x34, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x2d,
599 0x55, 0x54, 0x4e, 0x2d, 0x55, 0x53, 0x45, 0x52, 0x46, 0x69, 0x72, 0x73,
600 0x74, 0x2d, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x20, 0x41, 0x75, 0x74,
601 0x68, 0x65, 0x6e, 0x74, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20,
602 0x61, 0x6e, 0x64, 0x20, 0x45, 0x6d, 0x61, 0x69, 0x6c
603 };
604
605 // 0:d=0 hl=3 l= 190 cons: SEQUENCE
606 // 3:d=1 hl=2 l= 63 cons: SET
607 // 5:d=2 hl=2 l= 61 cons: SEQUENCE
608 // 7:d=3 hl=2 l= 3 prim: OBJECT :commonName
609 // 12:d=3 hl=2 l= 54 prim: UTF8STRING :
610 // TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı
611 // 68:d=1 hl=2 l= 11 cons: SET
612 // 70:d=2 hl=2 l= 9 cons: SEQUENCE
613 // 72:d=3 hl=2 l= 3 prim: OBJECT :countryName
614 // 77:d=3 hl=2 l= 2 prim: PRINTABLESTRING :TR
615 // 81:d=1 hl=2 l= 15 cons: SET
616 // 83:d=2 hl=2 l= 13 cons: SEQUENCE
617 // 85:d=3 hl=2 l= 3 prim: OBJECT :localityName
618 // 90:d=3 hl=2 l= 6 prim: UTF8STRING :Ankara
619 // 98:d=1 hl=2 l= 93 cons: SET
620 //100:d=2 hl=2 l= 91 cons: SEQUENCE
621 //102:d=3 hl=2 l= 3 prim: OBJECT :organizationName
622 //107:d=3 hl=2 l= 84 prim: UTF8STRING :
623 // TÜRKTRUST Bilgi İletişim ve Bilişim Güvenliği Hizmetleri A.Ş.
624 // (c) Kasım 2005
625 const uint8 VARIABLE_IS_NOT_USED TurkTrustDN[] = {
626 0x30, 0x81, 0xbe, 0x31, 0x3f, 0x30, 0x3d, 0x06, 0x03, 0x55, 0x04, 0x03,
627 0x0c, 0x36, 0x54, 0xc3, 0x9c, 0x52, 0x4b, 0x54, 0x52, 0x55, 0x53, 0x54,
628 0x20, 0x45, 0x6c, 0x65, 0x6b, 0x74, 0x72, 0x6f, 0x6e, 0x69, 0x6b, 0x20,
629 0x53, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69, 0x6b, 0x61, 0x20, 0x48, 0x69,
630 0x7a, 0x6d, 0x65, 0x74, 0x20, 0x53, 0x61, 0xc4, 0x9f, 0x6c, 0x61, 0x79,
631 0xc4, 0xb1, 0x63, 0xc4, 0xb1, 0x73, 0xc4, 0xb1, 0x31, 0x0b, 0x30, 0x09,
632 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x54, 0x52, 0x31, 0x0f, 0x30,
633 0x0d, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x06, 0x41, 0x6e, 0x6b, 0x61,
634 0x72, 0x61, 0x31, 0x5d, 0x30, 0x5b, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c,
635 0x54, 0x54, 0xc3, 0x9c, 0x52, 0x4b, 0x54, 0x52, 0x55, 0x53, 0x54, 0x20,
636 0x42, 0x69, 0x6c, 0x67, 0x69, 0x20, 0xc4, 0xb0, 0x6c, 0x65, 0x74, 0x69,
637 0xc5, 0x9f, 0x69, 0x6d, 0x20, 0x76, 0x65, 0x20, 0x42, 0x69, 0x6c, 0x69,
638 0xc5, 0x9f, 0x69, 0x6d, 0x20, 0x47, 0xc3, 0xbc, 0x76, 0x65, 0x6e, 0x6c,
639 0x69, 0xc4, 0x9f, 0x69, 0x20, 0x48, 0x69, 0x7a, 0x6d, 0x65, 0x74, 0x6c,
640 0x65, 0x72, 0x69, 0x20, 0x41, 0x2e, 0xc5, 0x9e, 0x2e, 0x20, 0x28, 0x63,
641 0x29, 0x20, 0x4b, 0x61, 0x73, 0xc4, 0xb1, 0x6d, 0x20, 0x32, 0x30, 0x30,
642 0x35, 0x30, 0x1e, 0x17, 0x0d, 0x30, 0x35, 0x31, 0x31, 0x30, 0x37, 0x31,
643 0x30, 0x30, 0x37, 0x35, 0x37
644 };
645
646 // 33:d=2 hl=3 l= 207 cons: SEQUENCE
647 // 36:d=3 hl=2 l= 11 cons: SET
648 // 38:d=4 hl=2 l= 9 cons: SEQUENCE
649 // 40:d=5 hl=2 l= 3 prim: OBJECT :countryName
650 // 45:d=5 hl=2 l= 2 prim: PRINTABLESTRING :AT
651 // 49:d=3 hl=3 l= 139 cons: SET
652 // 52:d=4 hl=3 l= 136 cons: SEQUENCE
653 // 55:d=5 hl=2 l= 3 prim: OBJECT :organizationName
654 // 60:d=5 hl=3 l= 128 prim: BMPSTRING :
655 // A-Trust Ges. für Sicherheitssysteme im elektr. Datenverkehr GmbH
656 //191:d=3 hl=2 l= 24 cons: SET
657 //193:d=4 hl=2 l= 22 cons: SEQUENCE
658 //195:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
659 //200:d=5 hl=2 l= 15 prim: PRINTABLESTRING :A-Trust-Qual-01
660 //217:d=3 hl=2 l= 24 cons: SET
661 //219:d=4 hl=2 l= 22 cons: SEQUENCE
662 //221:d=5 hl=2 l= 3 prim: OBJECT :commonName
663 //226:d=5 hl=2 l= 15 prim: PRINTABLESTRING :A-Trust-Qual-01
664 const uint8 VARIABLE_IS_NOT_USED ATrustQual01DN[] = {
665 0x30, 0x81, 0xcf, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06,
666 0x13, 0x02, 0x41, 0x54, 0x31, 0x81, 0x8b, 0x30, 0x81, 0x88, 0x06, 0x03,
667 0x55, 0x04, 0x0a, 0x1e, 0x81, 0x80, 0x00, 0x41, 0x00, 0x2d, 0x00, 0x54,
668 0x00, 0x72, 0x00, 0x75, 0x00, 0x73, 0x00, 0x74, 0x00, 0x20, 0x00, 0x47,
669 0x00, 0x65, 0x00, 0x73, 0x00, 0x2e, 0x00, 0x20, 0x00, 0x66, 0x00, 0xfc,
670 0x00, 0x72, 0x00, 0x20, 0x00, 0x53, 0x00, 0x69, 0x00, 0x63, 0x00, 0x68,
671 0x00, 0x65, 0x00, 0x72, 0x00, 0x68, 0x00, 0x65, 0x00, 0x69, 0x00, 0x74,
672 0x00, 0x73, 0x00, 0x73, 0x00, 0x79, 0x00, 0x73, 0x00, 0x74, 0x00, 0x65,
673 0x00, 0x6d, 0x00, 0x65, 0x00, 0x20, 0x00, 0x69, 0x00, 0x6d, 0x00, 0x20,
674 0x00, 0x65, 0x00, 0x6c, 0x00, 0x65, 0x00, 0x6b, 0x00, 0x74, 0x00, 0x72,
675 0x00, 0x2e, 0x00, 0x20, 0x00, 0x44, 0x00, 0x61, 0x00, 0x74, 0x00, 0x65,
676 0x00, 0x6e, 0x00, 0x76, 0x00, 0x65, 0x00, 0x72, 0x00, 0x6b, 0x00, 0x65,
677 0x00, 0x68, 0x00, 0x72, 0x00, 0x20, 0x00, 0x47, 0x00, 0x6d, 0x00, 0x62,
678 0x00, 0x48, 0x31, 0x18, 0x30, 0x16, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x13,
679 0x0f, 0x41, 0x2d, 0x54, 0x72, 0x75, 0x73, 0x74, 0x2d, 0x51, 0x75, 0x61,
680 0x6c, 0x2d, 0x30, 0x31, 0x31, 0x18, 0x30, 0x16, 0x06, 0x03, 0x55, 0x04,
681 0x03, 0x13, 0x0f, 0x41, 0x2d, 0x54, 0x72, 0x75, 0x73, 0x74, 0x2d, 0x51,
682 0x75, 0x61, 0x6c, 0x2d, 0x30, 0x31, 0x30, 0x1e, 0x17
683 };
684
685 // 34:d=2 hl=3 l= 180 cons: SEQUENCE
686 // 37:d=3 hl=2 l= 20 cons: SET
687 // 39:d=4 hl=2 l= 18 cons: SEQUENCE
688 // 41:d=5 hl=2 l= 3 prim: OBJECT :organizationName
689 // 46:d=5 hl=2 l= 11 prim: PRINTABLESTRING :Entrust.net
690 // 59:d=3 hl=2 l= 64 cons: SET
691 // 61:d=4 hl=2 l= 62 cons: SEQUENCE
692 // 63:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
693 // 68:d=5 hl=2 l= 55 prim: T61STRING :
694 // www.entrust.net/CPS_2048 incorp. by ref. (limits liab.)
695 //125:d=3 hl=2 l= 37 cons: SET
696 //127:d=4 hl=2 l= 35 cons: SEQUENCE
697 //129:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
698 //134:d=5 hl=2 l= 28 prim: PRINTABLESTRING :
699 // (c) 1999 Entrust.net Limited
700 //164:d=3 hl=2 l= 51 cons: SET
701 //166:d=4 hl=2 l= 49 cons: SEQUENCE
702 //168:d=5 hl=2 l= 3 prim: OBJECT :commonName
703 //173:d=5 hl=2 l= 42 prim: PRINTABLESTRING :
704 // Entrust.net Certification Authority (2048)
705 const uint8 VARIABLE_IS_NOT_USED EntrustDN[] = {
706 0x30, 0x81, 0xb4, 0x31, 0x14, 0x30, 0x12, 0x06, 0x03, 0x55, 0x04, 0x0a,
707 0x13, 0x0b, 0x45, 0x6e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x2e, 0x6e, 0x65,
708 0x74, 0x31, 0x40, 0x30, 0x3e, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x14, 0x37,
709 0x77, 0x77, 0x77, 0x2e, 0x65, 0x6e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x2e,
710 0x6e, 0x65, 0x74, 0x2f, 0x43, 0x50, 0x53, 0x5f, 0x32, 0x30, 0x34, 0x38,
711 0x20, 0x69, 0x6e, 0x63, 0x6f, 0x72, 0x70, 0x2e, 0x20, 0x62, 0x79, 0x20,
712 0x72, 0x65, 0x66, 0x2e, 0x20, 0x28, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x73,
713 0x20, 0x6c, 0x69, 0x61, 0x62, 0x2e, 0x29, 0x31, 0x25, 0x30, 0x23, 0x06,
714 0x03, 0x55, 0x04, 0x0b, 0x13, 0x1c, 0x28, 0x63, 0x29, 0x20, 0x31, 0x39,
715 0x39, 0x39, 0x20, 0x45, 0x6e, 0x74, 0x72, 0x75, 0x73, 0x74, 0x2e, 0x6e,
716 0x65, 0x74, 0x20, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x31, 0x33,
717 0x30, 0x31, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x2a, 0x45, 0x6e, 0x74,
718 0x72, 0x75, 0x73, 0x74, 0x2e, 0x6e, 0x65, 0x74, 0x20, 0x43, 0x65, 0x72,
719 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x20, 0x41,
720 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x20, 0x28, 0x32, 0x30,
721 0x34, 0x38, 0x29
722 };
723
724 // 46:d=2 hl=2 l= 76 cons: SEQUENCE
725 // 48:d=3 hl=2 l= 11 cons: SET
726 // 50:d=4 hl=2 l= 9 cons: SEQUENCE
727 // 52:d=5 hl=2 l= 3 prim: OBJECT :countryName
728 // 57:d=5 hl=2 l= 2 prim: PRINTABLESTRING :ZA
729 // 61:d=3 hl=2 l= 37 cons: SET
730 // 63:d=4 hl=2 l= 35 cons: SEQUENCE
731 // 65:d=5 hl=2 l= 3 prim: OBJECT :organizationName
732 // 70:d=5 hl=2 l= 28 prim: PRINTABLESTRING :
733 // Thawte Consulting (Pty) Ltd.
734 // 100:d=3 hl=2 l= 22 cons: SET
735 // 102:d=4 hl=2 l= 20 cons: SEQUENCE
736 // 104:d=5 hl=2 l= 3 prim: OBJECT :commonName
737 // 109:d=5 hl=2 l= 13 prim: PRINTABLESTRING :Thawte SGC CA
738 const uint8 VARIABLE_IS_NOT_USED ThawteDN[] = {
739 0x30, 0x4C, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
740 0x02, 0x5A, 0x41, 0x31, 0x25, 0x30, 0x23, 0x06, 0x03, 0x55, 0x04, 0x0A,
741 0x13, 0x1C, 0x54, 0x68, 0x61, 0x77, 0x74, 0x65, 0x20, 0x43, 0x6F, 0x6E,
742 0x73, 0x75, 0x6C, 0x74, 0x69, 0x6E, 0x67, 0x20, 0x28, 0x50, 0x74, 0x79,
743 0x29, 0x20, 0x4C, 0x74, 0x64, 0x2E, 0x31, 0x16, 0x30, 0x14, 0x06, 0x03,
744 0x55, 0x04, 0x03, 0x13, 0x0D, 0x54, 0x68, 0x61, 0x77, 0x74, 0x65, 0x20,
745 0x53, 0x47, 0x43, 0x20, 0x43, 0x41
746 };
747
748 // 47:d=2 hl=2 l= 108 cons: SEQUENCE
749 // 49:d=3 hl=2 l= 11 cons: SET
750 // 51:d=4 hl=2 l= 9 cons: SEQUENCE
751 // 53:d=5 hl=2 l= 3 prim: OBJECT :countryName
752 // 58:d=5 hl=2 l= 2 prim: PRINTABLESTRING :US
753 // 62:d=3 hl=2 l= 22 cons: SET
754 // 64:d=4 hl=2 l= 20 cons: SEQUENCE
755 // 66:d=5 hl=2 l= 3 prim: OBJECT :stateOrProvinceName
756 // 71:d=5 hl=2 l= 13 prim: PRINTABLESTRING :Massachusetts
757 // 86:d=3 hl=2 l= 46 cons: SET
758 // 88:d=4 hl=2 l= 44 cons: SEQUENCE
759 // 90:d=5 hl=2 l= 3 prim: OBJECT :organizationName
760 // 95:d=5 hl=2 l= 37 prim: PRINTABLESTRING :
761 // Massachusetts Institute of Technology
762 // 134:d=3 hl=2 l= 21 cons: SET
763 // 136:d=4 hl=2 l= 19 cons: SEQUENCE
764 // 138:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
765 // 143:d=5 hl=2 l= 12 prim: PRINTABLESTRING :Client CA v1
766 const uint8 VARIABLE_IS_NOT_USED MITDN[] = {
767 0x30, 0x6C, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
768 0x02, 0x55, 0x53, 0x31, 0x16, 0x30, 0x14, 0x06, 0x03, 0x55, 0x04, 0x08,
769 0x13, 0x0D, 0x4D, 0x61, 0x73, 0x73, 0x61, 0x63, 0x68, 0x75, 0x73, 0x65,
770 0x74, 0x74, 0x73, 0x31, 0x2E, 0x30, 0x2C, 0x06, 0x03, 0x55, 0x04, 0x0A,
771 0x13, 0x25, 0x4D, 0x61, 0x73, 0x73, 0x61, 0x63, 0x68, 0x75, 0x73, 0x65,
772 0x74, 0x74, 0x73, 0x20, 0x49, 0x6E, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74,
773 0x65, 0x20, 0x6F, 0x66, 0x20, 0x54, 0x65, 0x63, 0x68, 0x6E, 0x6F, 0x6C,
774 0x6F, 0x67, 0x79, 0x31, 0x15, 0x30, 0x13, 0x06, 0x03, 0x55, 0x04, 0x0B,
775 0x13, 0x0C, 0x43, 0x6C, 0x69, 0x65, 0x6E, 0x74, 0x20, 0x43, 0x41, 0x20,
776 0x76, 0x31
777 };
778
779 // 31:d=2 hl=2 l= 91 cons: SEQUENCE
780 // 33:d=3 hl=2 l= 11 cons: SET
781 // 35:d=4 hl=2 l= 9 cons: SEQUENCE
782 // 37:d=5 hl=2 l= 3 prim: OBJECT :countryName
783 // 42:d=5 hl=2 l= 2 prim: PRINTABLESTRING :US
784 // 46:d=3 hl=2 l= 24 cons: SET
785 // 48:d=4 hl=2 l= 22 cons: SEQUENCE
786 // 50:d=5 hl=2 l= 3 prim: OBJECT :organizationName
787 // 55:d=5 hl=2 l= 15 prim: PRINTABLESTRING :U.S. Government
788 // 72:d=3 hl=2 l= 12 cons: SET
789 // 74:d=4 hl=2 l= 10 cons: SEQUENCE
790 // 76:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
791 // 81:d=5 hl=2 l= 3 prim: PRINTABLESTRING :DoD
792 // 86:d=3 hl=2 l= 12 cons: SET
793 // 88:d=4 hl=2 l= 10 cons: SEQUENCE
794 // 90:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
795 // 95:d=5 hl=2 l= 3 prim: PRINTABLESTRING :PKI
796 // 100:d=3 hl=2 l= 22 cons: SET
797 // 102:d=4 hl=2 l= 20 cons: SEQUENCE
798 // 104:d=5 hl=2 l= 3 prim: OBJECT :commonName
799 // 109:d=5 hl=2 l= 13 prim: PRINTABLESTRING :DoD Root CA 2
800 const uint8 VARIABLE_IS_NOT_USED DodRootCA2DN[] = {
801 0x30, 0x5b, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
802 0x02, 0x55, 0x53, 0x31, 0x18, 0x30, 0x16, 0x06, 0x03, 0x55, 0x04, 0x0a,
803 0x13, 0x0f, 0x55, 0x2e, 0x53, 0x2e, 0x20, 0x47, 0x6f, 0x76, 0x65, 0x72,
804 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x31, 0x0c, 0x30, 0x0a, 0x06, 0x03, 0x55,
805 0x04, 0x0b, 0x13, 0x03, 0x44, 0x6f, 0x44, 0x31, 0x0c, 0x30, 0x0a, 0x06,
806 0x03, 0x55, 0x04, 0x0b, 0x13, 0x03, 0x50, 0x4b, 0x49, 0x31, 0x16, 0x30,
807 0x14, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x0d, 0x44, 0x6f, 0x44, 0x20,
808 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x43, 0x41, 0x20, 0x32
809 };
810
811 // 33:d=2 hl=2 l= 87 cons: SEQUENCE
812 // 35:d=3 hl=2 l= 11 cons: SET
813 // 37:d=4 hl=2 l= 9 cons: SEQUENCE
814 // 39:d=5 hl=2 l= 3 prim: OBJECT :countryName
815 // 44:d=5 hl=2 l= 2 prim: PRINTABLESTRING :US
816 // 48:d=3 hl=2 l= 24 cons: SET
817 // 50:d=4 hl=2 l= 22 cons: SEQUENCE
818 // 52:d=5 hl=2 l= 3 prim: OBJECT :organizationName
819 // 57:d=5 hl=2 l= 15 prim: PRINTABLESTRING :U.S. Government
820 // 74:d=3 hl=2 l= 12 cons: SET
821 // 76:d=4 hl=2 l= 10 cons: SEQUENCE
822 // 78:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
823 // 83:d=5 hl=2 l= 3 prim: PRINTABLESTRING :DoD
824 // 88:d=3 hl=2 l= 12 cons: SET
825 // 90:d=4 hl=2 l= 10 cons: SEQUENCE
826 // 92:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
827 // 97:d=5 hl=2 l= 3 prim: PRINTABLESTRING :PKI
828 // 102:d=3 hl=2 l= 18 cons: SET
829 // 104:d=4 hl=2 l= 16 cons: SEQUENCE
830 // 106:d=5 hl=2 l= 3 prim: OBJECT :commonName
831 // 111:d=5 hl=2 l= 9 prim: PRINTABLESTRING :DOD CA-17
832 const uint8 VARIABLE_IS_NOT_USED DodCA17DN[] = {
833 0x30, 0x57, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
834 0x02, 0x55, 0x53, 0x31, 0x18, 0x30, 0x16, 0x06, 0x03, 0x55, 0x04, 0x0a,
835 0x13, 0x0f, 0x55, 0x2e, 0x53, 0x2e, 0x20, 0x47, 0x6f, 0x76, 0x65, 0x72,
836 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x31, 0x0c, 0x30, 0x0a, 0x06, 0x03, 0x55,
837 0x04, 0x0b, 0x13, 0x03, 0x44, 0x6f, 0x44, 0x31, 0x0c, 0x30, 0x0a, 0x06,
838 0x03, 0x55, 0x04, 0x0b, 0x13, 0x03, 0x50, 0x4b, 0x49, 0x31, 0x12, 0x30,
839 0x10, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x09, 0x44, 0x4f, 0x44, 0x20,
840 0x43, 0x41, 0x2d, 0x31, 0x37
841 };
842
472 } // namespace 843 } // namespace
OLDNEW
« no previous file with comments | « no previous file | net/base/x509_cert_types_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698