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

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

Issue 18223006: Add script for generating certificates that require an explicit policy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 0x13, 0x0D, 0x4D, 0x61, 0x73, 0x73, 0x61, 0x63, 0x68, 0x75, 0x73, 0x65, 780 0x13, 0x0D, 0x4D, 0x61, 0x73, 0x73, 0x61, 0x63, 0x68, 0x75, 0x73, 0x65,
781 0x74, 0x74, 0x73, 0x31, 0x2E, 0x30, 0x2C, 0x06, 0x03, 0x55, 0x04, 0x0A, 781 0x74, 0x74, 0x73, 0x31, 0x2E, 0x30, 0x2C, 0x06, 0x03, 0x55, 0x04, 0x0A,
782 0x13, 0x25, 0x4D, 0x61, 0x73, 0x73, 0x61, 0x63, 0x68, 0x75, 0x73, 0x65, 782 0x13, 0x25, 0x4D, 0x61, 0x73, 0x73, 0x61, 0x63, 0x68, 0x75, 0x73, 0x65,
783 0x74, 0x74, 0x73, 0x20, 0x49, 0x6E, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74, 783 0x74, 0x74, 0x73, 0x20, 0x49, 0x6E, 0x73, 0x74, 0x69, 0x74, 0x75, 0x74,
784 0x65, 0x20, 0x6F, 0x66, 0x20, 0x54, 0x65, 0x63, 0x68, 0x6E, 0x6F, 0x6C, 784 0x65, 0x20, 0x6F, 0x66, 0x20, 0x54, 0x65, 0x63, 0x68, 0x6E, 0x6F, 0x6C,
785 0x6F, 0x67, 0x79, 0x31, 0x15, 0x30, 0x13, 0x06, 0x03, 0x55, 0x04, 0x0B, 785 0x6F, 0x67, 0x79, 0x31, 0x15, 0x30, 0x13, 0x06, 0x03, 0x55, 0x04, 0x0B,
786 0x13, 0x0C, 0x43, 0x6C, 0x69, 0x65, 0x6E, 0x74, 0x20, 0x43, 0x41, 0x20, 786 0x13, 0x0C, 0x43, 0x6C, 0x69, 0x65, 0x6E, 0x74, 0x20, 0x43, 0x41, 0x20,
787 0x76, 0x31 787 0x76, 0x31
788 }; 788 };
789 789
790 // 31:d=2 hl=2 l= 91 cons: SEQUENCE
791 // 33:d=3 hl=2 l= 11 cons: SET
792 // 35:d=4 hl=2 l= 9 cons: SEQUENCE
793 // 37:d=5 hl=2 l= 3 prim: OBJECT :countryName
794 // 42:d=5 hl=2 l= 2 prim: PRINTABLESTRING :US
795 // 46:d=3 hl=2 l= 24 cons: SET
796 // 48:d=4 hl=2 l= 22 cons: SEQUENCE
797 // 50:d=5 hl=2 l= 3 prim: OBJECT :organizationName
798 // 55:d=5 hl=2 l= 15 prim: PRINTABLESTRING :U.S. Government
799 // 72:d=3 hl=2 l= 12 cons: SET
800 // 74:d=4 hl=2 l= 10 cons: SEQUENCE
801 // 76:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
802 // 81:d=5 hl=2 l= 3 prim: PRINTABLESTRING :DoD
803 // 86:d=3 hl=2 l= 12 cons: SET
804 // 88:d=4 hl=2 l= 10 cons: SEQUENCE
805 // 90:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
806 // 95:d=5 hl=2 l= 3 prim: PRINTABLESTRING :PKI
807 // 100:d=3 hl=2 l= 22 cons: SET
808 // 102:d=4 hl=2 l= 20 cons: SEQUENCE
809 // 104:d=5 hl=2 l= 3 prim: OBJECT :commonName
810 // 109:d=5 hl=2 l= 13 prim: PRINTABLESTRING :DoD Root CA 2
811 const uint8 VARIABLE_IS_NOT_USED DodRootCA2DN[] = {
812 0x30, 0x5b, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
813 0x02, 0x55, 0x53, 0x31, 0x18, 0x30, 0x16, 0x06, 0x03, 0x55, 0x04, 0x0a,
814 0x13, 0x0f, 0x55, 0x2e, 0x53, 0x2e, 0x20, 0x47, 0x6f, 0x76, 0x65, 0x72,
815 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x31, 0x0c, 0x30, 0x0a, 0x06, 0x03, 0x55,
816 0x04, 0x0b, 0x13, 0x03, 0x44, 0x6f, 0x44, 0x31, 0x0c, 0x30, 0x0a, 0x06,
817 0x03, 0x55, 0x04, 0x0b, 0x13, 0x03, 0x50, 0x4b, 0x49, 0x31, 0x16, 0x30,
818 0x14, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x0d, 0x44, 0x6f, 0x44, 0x20,
819 0x52, 0x6f, 0x6f, 0x74, 0x20, 0x43, 0x41, 0x20, 0x32
820 };
821
822 // 33:d=2 hl=2 l= 87 cons: SEQUENCE
823 // 35:d=3 hl=2 l= 11 cons: SET
824 // 37:d=4 hl=2 l= 9 cons: SEQUENCE
825 // 39:d=5 hl=2 l= 3 prim: OBJECT :countryName
826 // 44:d=5 hl=2 l= 2 prim: PRINTABLESTRING :US
827 // 48:d=3 hl=2 l= 24 cons: SET
828 // 50:d=4 hl=2 l= 22 cons: SEQUENCE
829 // 52:d=5 hl=2 l= 3 prim: OBJECT :organizationName
830 // 57:d=5 hl=2 l= 15 prim: PRINTABLESTRING :U.S. Government
831 // 74:d=3 hl=2 l= 12 cons: SET
832 // 76:d=4 hl=2 l= 10 cons: SEQUENCE
833 // 78:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
834 // 83:d=5 hl=2 l= 3 prim: PRINTABLESTRING :DoD
835 // 88:d=3 hl=2 l= 12 cons: SET
836 // 90:d=4 hl=2 l= 10 cons: SEQUENCE
837 // 92:d=5 hl=2 l= 3 prim: OBJECT :organizationalUnitName
838 // 97:d=5 hl=2 l= 3 prim: PRINTABLESTRING :PKI
839 // 102:d=3 hl=2 l= 18 cons: SET
840 // 104:d=4 hl=2 l= 16 cons: SEQUENCE
841 // 106:d=5 hl=2 l= 3 prim: OBJECT :commonName
842 // 111:d=5 hl=2 l= 9 prim: PRINTABLESTRING :DOD CA-17
843 const uint8 VARIABLE_IS_NOT_USED DodCA17DN[] = {
844 0x30, 0x57, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
845 0x02, 0x55, 0x53, 0x31, 0x18, 0x30, 0x16, 0x06, 0x03, 0x55, 0x04, 0x0a,
846 0x13, 0x0f, 0x55, 0x2e, 0x53, 0x2e, 0x20, 0x47, 0x6f, 0x76, 0x65, 0x72,
847 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x31, 0x0c, 0x30, 0x0a, 0x06, 0x03, 0x55,
848 0x04, 0x0b, 0x13, 0x03, 0x44, 0x6f, 0x44, 0x31, 0x0c, 0x30, 0x0a, 0x06,
849 0x03, 0x55, 0x04, 0x0b, 0x13, 0x03, 0x50, 0x4b, 0x49, 0x31, 0x12, 0x30,
850 0x10, 0x06, 0x03, 0x55, 0x04, 0x03, 0x13, 0x09, 0x44, 0x4f, 0x44, 0x20,
851 0x43, 0x41, 0x2d, 0x31, 0x37
852 };
853
854 } // namespace 790 } // namespace
OLDNEW
« net/data/ssl/scripts/generate-policy-certs.sh ('K') | « net/data/ssl/scripts/policy.cnf ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698