| RSA BSAFE Micro Edition Suite |
Streamlined security for mobile and embedded devices |
 
![]() |
00001 /* $Id: rcertandkey.h,v 1.2 2005/06/09 06:21:55 jmckee Exp $ */
00002 /*
00003 * Copyright (C) 1998-2003 RSA Security Inc.
00004 *
00005 * This file shall only be used to demonstrate how to interface to an
00006 * RSA Security Inc. licensed development product.
00007 *
00008 * You have a royalty-free right to use, reproduce and distribute this
00009 * demonstration file, provided that you agree that RSA Security Inc.
00010 * has no warranty, implied or otherwise, or liability for this
00011 * demonstration file (including any modified version). This software
00012 * is provided "as is" without warranties or representations of any
00013 * kind. RSA Security disclaims all conditions and warranties, statutory
00014 * and otherwise, both express and implied, with respect to the software,
00015 * its quality and performance, including but not limited to, all
00016 * implied warranties of merchantability, fitness for a particular
00017 * purpose, title and noninfringement of third party rights. Without
00018 * limiting the foregoing, RSA Security does not warrant that the
00019 * software is error-free or that errors in the product will be
00020 * corrected. You agree that RSA Security shall not be liable for any
00021 * direct, indirect, incidental, special, consequential, punitive or
00022 * other damages whatsoever resulting from your use of this software
00023 * or any modified version.
00024 *
00025 *
00026 */
00027
00034 /* Signing Certificate - In Text Format as comment:
00035 Certificate:
00036 Data:
00037 Version: 3 (0x2)
00038 Serial Number: 1 (0x1)
00039 Signature Algorithm: md5WithRSAEncryption
00040 Issuer: C=AU, ST=Queensland, L=Brisbane, O=ABC Great Company Pty Ltd,
00041 CN=Joe Bloggs/Email=jbloggs@mymailbox.com
00042 Validity
00043 Not Before: May 3 07:12:52 2005 GMT
00044 Not After : Apr 30 07:12:52 2010 GMT
00045 Subject: C=AU, ST=Queensland, L=Brisbane, O=ABC Great Company Pty Ltd,
00046 CN=Fred Smith/Email=fsmith@mymailbox.com
00047 Subject Public Key Info:
00048 Public Key Algorithm: rsaEncryption
00049 RSA Public Key: (1024 bit)
00050 Modulus (1024 bit):
00051 00:c4:f7:dc:ee:b8:6c:16:02:04:96:d8:8b:d8:c6:
00052 6d:04:d7:56:42:87:20:d9:7a:a5:7c:c5:55:e6:bc:
00053 55:b1:62:5d:aa:de:19:e4:5b:14:9a:01:5d:df:a0:
00054 66:ba:23:24:05:9d:2f:11:d4:04:1f:77:ab:da:33:
00055 f5:10:6d:48:14:87:79:3f:9f:ee:f5:a5:48:3a:33:
00056 da:fa:be:ef:50:14:6f:74:c4:0a:56:d6:79:9e:c3:
00057 a7:02:71:95:4b:1f:0f:88:26:f9:f2:e9:97:3b:53:
00058 1e:b6:51:b7:01:1d:74:ec:c1:fc:f9:73:99:20:db:
00059 cf:72:6e:e0:b4:5e:95:7d:33
00060 Exponent: 65537 (0x10001)
00061 X509v3 extensions:
00062 X509v3 Subject Alternative Name:
00063 IP Address:10.177.1.59, DNS:deneva-bn
00064 X509v3 Key Usage:
00065 Digital Signature, Non Repudiation, Key Encipherment,
00066 Data Encipherment, Key Agreement, Certificate Sign
00067 Signature Algorithm: md5WithRSAEncryption
00068 30:15:25:b4:bd:aa:c5:93:61:3a:b2:20:54:b3:4a:b4:5d:04:
00069 f1:61:de:13:83:cf:7c:ff:e1:6a:93:e6:96:ce:cd:51:d0:62:
00070 0c:1f:60:ac:69:40:0d:de:db:27:c4:83:cb:42:01:a3:da:50:
00071 f7:5a:02:fa:36:ae:6f:c2:45:a6:86:ed:d6:a7:f7:57:8e:71:
00072 ac:e9:1f:53:b0:c5:db:fa:da:85:60:c6:2c:55:c3:ab:43:f0:
00073 4d:69:a0:70:71:5f:c2:7e:3e:1c:5f:66:e5:21:36:bd:d1:ac:
00074 c3:12:ab:4f:27:e2:e2:4c:d9:5c:ef:20:b8:d4:63:52:e2:0f:
00075 fe:43
00076 */
00077 unsigned char certificate[718]={
00078 0x30,0x82,0x02,0xCA,0x30,0x82,0x02,0x33,0xA0,0x03,0x02,0x01,0x02,0x02,0x01,0x01,
00079 0x30,0x0D,0x06,0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x04,0x05,0x00,0x30,
00080 0x81,0x94,0x31,0x0B,0x30,0x09,0x06,0x03,0x55,0x04,0x06,0x13,0x02,0x41,0x55,0x31,
00081 0x13,0x30,0x11,0x06,0x03,0x55,0x04,0x08,0x13,0x0A,0x51,0x75,0x65,0x65,0x6E,0x73,
00082 0x6C,0x61,0x6E,0x64,0x31,0x11,0x30,0x0F,0x06,0x03,0x55,0x04,0x07,0x13,0x08,0x42,
00083 0x72,0x69,0x73,0x62,0x61,0x6E,0x65,0x31,0x22,0x30,0x20,0x06,0x03,0x55,0x04,0x0A,
00084 0x13,0x19,0x41,0x42,0x43,0x20,0x47,0x72,0x65,0x61,0x74,0x20,0x43,0x6F,0x6D,0x70,
00085 0x61,0x6E,0x79,0x20,0x50,0x74,0x79,0x20,0x4C,0x74,0x64,0x31,0x13,0x30,0x11,0x06,
00086 0x03,0x55,0x04,0x03,0x13,0x0A,0x4A,0x6F,0x65,0x20,0x42,0x6C,0x6F,0x67,0x67,0x73,
00087 0x31,0x24,0x30,0x22,0x06,0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x09,0x01,0x16,
00088 0x15,0x6A,0x62,0x6C,0x6F,0x67,0x67,0x73,0x40,0x6D,0x79,0x6D,0x61,0x69,0x6C,0x62,
00089 0x6F,0x78,0x2E,0x63,0x6F,0x6D,0x30,0x1E,0x17,0x0D,0x30,0x35,0x30,0x35,0x30,0x33,
00090 0x30,0x37,0x31,0x32,0x35,0x32,0x5A,0x17,0x0D,0x31,0x30,0x30,0x34,0x33,0x30,0x30,
00091 0x37,0x31,0x32,0x35,0x32,0x5A,0x30,0x81,0x93,0x31,0x0B,0x30,0x09,0x06,0x03,0x55,
00092 0x04,0x06,0x13,0x02,0x41,0x55,0x31,0x13,0x30,0x11,0x06,0x03,0x55,0x04,0x08,0x13,
00093 0x0A,0x51,0x75,0x65,0x65,0x6E,0x73,0x6C,0x61,0x6E,0x64,0x31,0x11,0x30,0x0F,0x06,
00094 0x03,0x55,0x04,0x07,0x13,0x08,0x42,0x72,0x69,0x73,0x62,0x61,0x6E,0x65,0x31,0x22,
00095 0x30,0x20,0x06,0x03,0x55,0x04,0x0A,0x13,0x19,0x41,0x42,0x43,0x20,0x47,0x72,0x65,
00096 0x61,0x74,0x20,0x43,0x6F,0x6D,0x70,0x61,0x6E,0x79,0x20,0x50,0x74,0x79,0x20,0x4C,
00097 0x74,0x64,0x31,0x13,0x30,0x11,0x06,0x03,0x55,0x04,0x03,0x13,0x0A,0x46,0x72,0x65,
00098 0x64,0x20,0x53,0x6D,0x69,0x74,0x68,0x31,0x23,0x30,0x21,0x06,0x09,0x2A,0x86,0x48,
00099 0x86,0xF7,0x0D,0x01,0x09,0x01,0x16,0x14,0x66,0x73,0x6D,0x69,0x74,0x68,0x40,0x6D,
00100 0x79,0x6D,0x61,0x69,0x6C,0x62,0x6F,0x78,0x2E,0x63,0x6F,0x6D,0x30,0x81,0x9F,0x30,
00101 0x0D,0x06,0x09,0x2A,0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x01,0x05,0x00,0x03,0x81,
00102 0x8D,0x00,0x30,0x81,0x89,0x02,0x81,0x81,0x00,0xC4,0xF7,0xDC,0xEE,0xB8,0x6C,0x16,
00103 0x02,0x04,0x96,0xD8,0x8B,0xD8,0xC6,0x6D,0x04,0xD7,0x56,0x42,0x87,0x20,0xD9,0x7A,
00104 0xA5,0x7C,0xC5,0x55,0xE6,0xBC,0x55,0xB1,0x62,0x5D,0xAA,0xDE,0x19,0xE4,0x5B,0x14,
00105 0x9A,0x01,0x5D,0xDF,0xA0,0x66,0xBA,0x23,0x24,0x05,0x9D,0x2F,0x11,0xD4,0x04,0x1F,
00106 0x77,0xAB,0xDA,0x33,0xF5,0x10,0x6D,0x48,0x14,0x87,0x79,0x3F,0x9F,0xEE,0xF5,0xA5,
00107 0x48,0x3A,0x33,0xDA,0xFA,0xBE,0xEF,0x50,0x14,0x6F,0x74,0xC4,0x0A,0x56,0xD6,0x79,
00108 0x9E,0xC3,0xA7,0x02,0x71,0x95,0x4B,0x1F,0x0F,0x88,0x26,0xF9,0xF2,0xE9,0x97,0x3B,
00109 0x53,0x1E,0xB6,0x51,0xB7,0x01,0x1D,0x74,0xEC,0xC1,0xFC,0xF9,0x73,0x99,0x20,0xDB,
00110 0xCF,0x72,0x6E,0xE0,0xB4,0x5E,0x95,0x7D,0x33,0x02,0x03,0x01,0x00,0x01,0xA3,0x2B,
00111 0x30,0x29,0x30,0x1A,0x06,0x03,0x55,0x1D,0x11,0x04,0x13,0x30,0x11,0x87,0x04,0x0A,
00112 0xB1,0x01,0x3B,0x82,0x09,0x64,0x65,0x6E,0x65,0x76,0x61,0x2D,0x62,0x6E,0x30,0x0B,
00113 0x06,0x03,0x55,0x1D,0x0F,0x04,0x04,0x03,0x02,0x02,0xFC,0x30,0x0D,0x06,0x09,0x2A,
00114 0x86,0x48,0x86,0xF7,0x0D,0x01,0x01,0x04,0x05,0x00,0x03,0x81,0x81,0x00,0x30,0x15,
00115 0x25,0xB4,0xBD,0xAA,0xC5,0x93,0x61,0x3A,0xB2,0x20,0x54,0xB3,0x4A,0xB4,0x5D,0x04,
00116 0xF1,0x61,0xDE,0x13,0x83,0xCF,0x7C,0xFF,0xE1,0x6A,0x93,0xE6,0x96,0xCE,0xCD,0x51,
00117 0xD0,0x62,0x0C,0x1F,0x60,0xAC,0x69,0x40,0x0D,0xDE,0xDB,0x27,0xC4,0x83,0xCB,0x42,
00118 0x01,0xA3,0xDA,0x50,0xF7,0x5A,0x02,0xFA,0x36,0xAE,0x6F,0xC2,0x45,0xA6,0x86,0xED,
00119 0xD6,0xA7,0xF7,0x57,0x8E,0x71,0xAC,0xE9,0x1F,0x53,0xB0,0xC5,0xDB,0xFA,0xDA,0x85,
00120 0x60,0xC6,0x2C,0x55,0xC3,0xAB,0x43,0xF0,0x4D,0x69,0xA0,0x70,0x71,0x5F,0xC2,0x7E,
00121 0x3E,0x1C,0x5F,0x66,0xE5,0x21,0x36,0xBD,0xD1,0xAC,0xC3,0x12,0xAB,0x4F,0x27,0xE2,
00122 0xE2,0x4C,0xD9,0x5C,0xEF,0x20,0xB8,0xD4,0x63,0x52,0xE2,0x0F,0xFE,0x43,
00123 };
00124
00125 /* Private Key of the Certificate */
00126 static unsigned char priv_key_data[608]={
00127 0x30,0x82,0x02,0x5C,0x02,0x01,0x00,0x02,0x81,0x81,0x00,0xC4,
00128 0xF7,0xDC,0xEE,0xB8,0x6C,0x16,0x02,0x04,0x96,0xD8,0x8B,0xD8,
00129 0xC6,0x6D,0x04,0xD7,0x56,0x42,0x87,0x20,0xD9,0x7A,0xA5,0x7C,
00130 0xC5,0x55,0xE6,0xBC,0x55,0xB1,0x62,0x5D,0xAA,0xDE,0x19,0xE4,
00131 0x5B,0x14,0x9A,0x01,0x5D,0xDF,0xA0,0x66,0xBA,0x23,0x24,0x05,
00132 0x9D,0x2F,0x11,0xD4,0x04,0x1F,0x77,0xAB,0xDA,0x33,0xF5,0x10,
00133 0x6D,0x48,0x14,0x87,0x79,0x3F,0x9F,0xEE,0xF5,0xA5,0x48,0x3A,
00134 0x33,0xDA,0xFA,0xBE,0xEF,0x50,0x14,0x6F,0x74,0xC4,0x0A,0x56,
00135 0xD6,0x79,0x9E,0xC3,0xA7,0x02,0x71,0x95,0x4B,0x1F,0x0F,0x88,
00136 0x26,0xF9,0xF2,0xE9,0x97,0x3B,0x53,0x1E,0xB6,0x51,0xB7,0x01,
00137 0x1D,0x74,0xEC,0xC1,0xFC,0xF9,0x73,0x99,0x20,0xDB,0xCF,0x72,