Skip to content

Commit

Permalink
Merge pull request #1414 from JacobBarthelmeh/Certs
Browse files Browse the repository at this point in the history
update certificate after dates
  • Loading branch information
toddouska authored Mar 2, 2018
2 parents a82dc1a + f223f8f commit e95fa69
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 50 deletions.
Binary file modified certs/1024/ca-cert.der
Binary file not shown.
Binary file modified certs/1024/server-cert.der
Binary file not shown.
48 changes: 42 additions & 6 deletions certs/ecc-privOnlyCert.pem
Original file line number Diff line number Diff line change
@@ -1,8 +1,44 @@
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 11535733361370405423 (0xa017285f8c1b1a2f)
Signature Algorithm: ecdsa-with-SHA256
Issuer: O=WR, C=DE
Validity
Not Before: Mar 2 21:02:20 2018 GMT
Not After : Mar 2 21:02:20 2019 GMT
Subject: O=WR, C=DE
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
pub:
04:25:c0:fd:16:b8:2b:f2:b8:0a:1e:dd:ac:ce:62:
52:7c:58:0a:60:7d:57:75:da:bd:11:c1:d5:2a:ea:
54:6b:76:e6:3d:36:f7:dd:51:97:6b:a8:26:fe:7b:
a6:bd:96:55:85:50:9d:9a:7e:69:01:d8:43:45:89:
d9:fe:4a:2b:26
ASN1 OID: prime256v1
NIST CURVE: P-256
X509v3 extensions:
X509v3 Subject Key Identifier:
B2:B1:0D:05:AC:6A:0C:A1:AD:92:0A:7E:C7:E1:68:56:35:40:19:EA
X509v3 Authority Key Identifier:
keyid:B2:B1:0D:05:AC:6A:0C:A1:AD:92:0A:7E:C7:E1:68:56:35:40:19:EA

X509v3 Basic Constraints:
CA:TRUE
Signature Algorithm: ecdsa-with-SHA256
30:44:02:20:2f:5e:f3:52:0b:39:4c:1a:69:6d:52:cf:a5:7a:
63:03:0b:ff:48:9a:32:fb:57:66:10:60:7d:6e:e2:e4:87:e2:
02:20:24:21:fd:a9:88:74:07:79:5f:e5:15:89:41:39:51:32:
a9:62:8d:ef:4b:8a:3c:81:ca:7f:2e:32:f1:fe:c2:f3
-----BEGIN CERTIFICATE-----
MIIBJDCByaADAgECAgEAMAwGCCqGSM49BAMCBQAwGjELMAkGA1UEChMCV1IxCzAJBgNVBAYTAkRF
MB4XDTE3MDIwNjE0NTY0MVoXDTE4MDIwNjE0NTY0MVowGjELMAkGA1UEChMCV1IxCzAJBgNVBAYT
AkRFMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEJcD9Frgr8rgKHt2szmJSfFgKYH1Xddq9EcHV
KupUa3bmPTb33VGXa6gm/numvZZVhVCdmn5pAdhDRYnZ/korJjAMBggqhkjOPQQDAgUAA0gAMEUC
IDnBQOHgHIudh7nFB0wG/WFMoUutVFN0uQPbVJSWwbQHAiEAmw25n+eEMgMK4Gi7qH1lzxm11WX0
jM1gxQSGZTaja8s=
MIIBejCCASGgAwIBAgIJAKAXKF+MGxovMAoGCCqGSM49BAMCMBoxCzAJBgNVBAoT
AldSMQswCQYDVQQGEwJERTAeFw0xODAzMDIyMTAyMjBaFw0xOTAzMDIyMTAyMjBa
MBoxCzAJBgNVBAoTAldSMQswCQYDVQQGEwJERTBZMBMGByqGSM49AgEGCCqGSM49
AwEHA0IABCXA/Ra4K/K4Ch7drM5iUnxYCmB9V3XavRHB1SrqVGt25j02991Rl2uo
Jv57pr2WVYVQnZp+aQHYQ0WJ2f5KKyajUDBOMB0GA1UdDgQWBBSysQ0FrGoMoa2S
Cn7H4WhWNUAZ6jAfBgNVHSMEGDAWgBSysQ0FrGoMoa2SCn7H4WhWNUAZ6jAMBgNV
HRMEBTADAQH/MAoGCCqGSM49BAMCA0cAMEQCIC9e81ILOUwaaW1Sz6V6YwML/0ia
MvtXZhBgfW7i5IfiAiAkIf2piHQHeV/lFYlBOVEyqWKN70uKPIHKfy4y8f7C8w==
-----END CERTIFICATE-----
Binary file modified certs/test/cert-ext-ia.der
Binary file not shown.
Binary file modified certs/test/cert-ext-nc.der
Binary file not shown.
2 changes: 1 addition & 1 deletion certs/test/gen-ext-certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ TMP="/tmp/`basename $0`"

gen_cert() {
openssl req -x509 -keyform DER -key certs/server-key.der \
-outform DER -out $OUT -config $CONFIG \
-days 1000 -new -outform DER -out $OUT -config $CONFIG \
>$TMP 2>&1

if [ "$?" = "0" -a -f $OUT ]; then
Expand Down
86 changes: 43 additions & 43 deletions wolfssl/certs_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,9 @@ static const int sizeof_ca_key_der_1024 = sizeof(ca_key_der_1024);
static const unsigned char ca_cert_der_1024[] =
{
0x30, 0x82, 0x03, 0xB5, 0x30, 0x82, 0x03, 0x1E, 0xA0, 0x03,
0x02, 0x01, 0x02, 0x02, 0x09, 0x00, 0x8F, 0x44, 0x26, 0xFF,
0xB7, 0x43, 0xE1, 0x9A, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86,
0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05, 0x05, 0x00, 0x30,
0x02, 0x01, 0x02, 0x02, 0x09, 0x00, 0xB5, 0x4E, 0x78, 0x83,
0xDD, 0xEF, 0xE7, 0x8F, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86,
0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0B, 0x05, 0x00, 0x30,
0x81, 0x99, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
0x06, 0x13, 0x02, 0x55, 0x53, 0x31, 0x10, 0x30, 0x0E, 0x06,
0x03, 0x55, 0x04, 0x08, 0x0C, 0x07, 0x4D, 0x6F, 0x6E, 0x74,
Expand All @@ -427,9 +427,9 @@ static const unsigned char ca_cert_der_1024[] =
0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01, 0x16, 0x10, 0x69,
0x6E, 0x66, 0x6F, 0x40, 0x77, 0x6F, 0x6C, 0x66, 0x73, 0x73,
0x6C, 0x2E, 0x63, 0x6F, 0x6D, 0x30, 0x1E, 0x17, 0x0D, 0x31,
0x35, 0x30, 0x39, 0x32, 0x33, 0x31, 0x39, 0x32, 0x33, 0x33,
0x38, 0x5A, 0x17, 0x0D, 0x31, 0x38, 0x30, 0x36, 0x31, 0x39,
0x31, 0x39, 0x32, 0x33, 0x33, 0x38, 0x5A, 0x30, 0x81, 0x99,
0x36, 0x30, 0x38, 0x31, 0x31, 0x32, 0x30, 0x30, 0x37, 0x33,
0x37, 0x5A, 0x17, 0x0D, 0x31, 0x39, 0x30, 0x35, 0x30, 0x38,
0x32, 0x30, 0x30, 0x37, 0x33, 0x37, 0x5A, 0x30, 0x81, 0x99,
0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
0x02, 0x55, 0x53, 0x31, 0x10, 0x30, 0x0E, 0x06, 0x03, 0x55,
0x04, 0x08, 0x0C, 0x07, 0x4D, 0x6F, 0x6E, 0x74, 0x61, 0x6E,
Expand Down Expand Up @@ -485,24 +485,24 @@ static const unsigned char ca_cert_der_1024[] =
0x30, 0x1D, 0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D,
0x01, 0x09, 0x01, 0x16, 0x10, 0x69, 0x6E, 0x66, 0x6F, 0x40,
0x77, 0x6F, 0x6C, 0x66, 0x73, 0x73, 0x6C, 0x2E, 0x63, 0x6F,
0x6D, 0x82, 0x09, 0x00, 0x8F, 0x44, 0x26, 0xFF, 0xB7, 0x43,
0xE1, 0x9A, 0x30, 0x0C, 0x06, 0x03, 0x55, 0x1D, 0x13, 0x04,
0x6D, 0x82, 0x09, 0x00, 0xB5, 0x4E, 0x78, 0x83, 0xDD, 0xEF,
0xE7, 0x8F, 0x30, 0x0C, 0x06, 0x03, 0x55, 0x1D, 0x13, 0x04,
0x05, 0x30, 0x03, 0x01, 0x01, 0xFF, 0x30, 0x0D, 0x06, 0x09,
0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05, 0x05,
0x00,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, 0xA9, 0x44, 0xB4, 0x95, 0xD6, 0x81, 0xDB,
0x9D, 0x28, 0x13, 0x5F, 0xA9, 0x75, 0x38, 0x2D, 0x80, 0xC6,
0x60, 0xF7, 0x4A, 0x48, 0x23, 0xC0, 0x97, 0xEE, 0xF7, 0x65,
0x35, 0x19, 0x8D, 0x20, 0xA2, 0x00, 0x24, 0x5C, 0xD9, 0x35,
0x22, 0x99, 0x1F, 0xDD, 0x5F, 0x0C, 0x83, 0xF8, 0xAB, 0x4D,
0x88, 0x69, 0x6A, 0xB0, 0xF4, 0x82, 0x5C, 0x77, 0xA5, 0x50,
0xB1, 0x09, 0xD1, 0x5D, 0x94, 0xD8, 0xB0, 0x26, 0xBF, 0xC1,
0x55, 0x14, 0x9F, 0xE2, 0xF0, 0x2E, 0x48, 0xD1, 0x7B, 0xFC,
0x52, 0xBF, 0xAC, 0x6D, 0x1A, 0x3A, 0xDD, 0x36, 0xEE, 0xCA,
0x51, 0x4C, 0x1D
};
static const int sizeof_ca_cert_der_1024 = sizeof(ca_cert_der_1024);

Expand Down Expand Up @@ -578,7 +578,7 @@ static const unsigned char server_cert_der_1024[] =
{
0x30, 0x82, 0x03, 0xA9, 0x30, 0x82, 0x03, 0x12, 0xA0, 0x03,
0x02, 0x01, 0x02, 0x02, 0x01, 0x01, 0x30, 0x0D, 0x06, 0x09,
0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x05, 0x05,
0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x01, 0x0B, 0x05,
0x00, 0x30, 0x81, 0x99, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03,
0x55, 0x04, 0x06, 0x13, 0x02, 0x55, 0x53, 0x31, 0x10, 0x30,
0x0E, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0C, 0x07, 0x4D, 0x6F,
Expand All @@ -595,9 +595,9 @@ static const unsigned char server_cert_der_1024[] =
0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09, 0x01, 0x16,
0x10, 0x69, 0x6E, 0x66, 0x6F, 0x40, 0x77, 0x6F, 0x6C, 0x66,
0x73, 0x73, 0x6C, 0x2E, 0x63, 0x6F, 0x6D, 0x30, 0x1E, 0x17,
0x0D, 0x31, 0x35, 0x30, 0x39, 0x32, 0x33, 0x31, 0x39, 0x32,
0x33, 0x33, 0x38, 0x5A, 0x17, 0x0D, 0x31, 0x38, 0x30, 0x36,
0x31, 0x39, 0x31, 0x39, 0x32, 0x33, 0x33, 0x38, 0x5A, 0x30,
0x0D, 0x31, 0x36, 0x30, 0x38, 0x31, 0x31, 0x32, 0x30, 0x30,
0x37, 0x33, 0x38, 0x5A, 0x17, 0x0D, 0x31, 0x39, 0x30, 0x35,
0x30, 0x38, 0x32, 0x30, 0x30, 0x37, 0x33, 0x38, 0x5A, 0x30,
0x81, 0x95, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
0x06, 0x13, 0x02, 0x55, 0x53, 0x31, 0x10, 0x30, 0x0E, 0x06,
0x03, 0x55, 0x04, 0x08, 0x0C, 0x07, 0x4D, 0x6F, 0x6E, 0x74,
Expand Down Expand Up @@ -653,24 +653,24 @@ static const unsigned char server_cert_der_1024[] =
0x06, 0x09, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x01, 0x09,
0x01, 0x16, 0x10, 0x69, 0x6E, 0x66, 0x6F, 0x40, 0x77, 0x6F,
0x6C, 0x66, 0x73, 0x73, 0x6C, 0x2E, 0x63, 0x6F, 0x6D, 0x82,
0x09, 0x00, 0x8F, 0x44, 0x26, 0xFF, 0xB7, 0x43, 0xE1, 0x9A,
0x09, 0x00, 0xB5, 0x4E, 0x78, 0x83, 0xDD, 0xEF, 0xE7, 0x8F,
0x30, 0x0C, 0x06, 0x03, 0x55, 0x1D, 0x13, 0x04, 0x05, 0x30,
0x03, 0x01, 0x01, 0xFF, 0x30, 0x0D, 0x06, 0x09, 0x2A, 0x86,
0x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 0x70, 0x0A, 0xEE, 0xBA, 0xEA,
0x98, 0x47, 0x78, 0x6F, 0x33, 0x8F, 0x44, 0x7A, 0xD5, 0x74,
0x8A, 0x7E, 0xAB, 0x49, 0x1D, 0xD7, 0x95, 0x12, 0x11, 0x8E,
0xA0, 0x54, 0x5D, 0x7D, 0x0B, 0xDA, 0xC2, 0xC3, 0x01, 0x1A,
0xE7, 0x20, 0x5E, 0x5A, 0xF7, 0x16, 0x81, 0x89, 0xB7, 0xCD,
0xE7, 0xDC, 0x46, 0xE6, 0x5E, 0xF9, 0x1A, 0xC2, 0x40, 0xA5,
0x59, 0xF1, 0xF5, 0xFA, 0x55, 0xDB, 0x15, 0xEA, 0x3C, 0xC6,
0x39, 0xFD, 0xE6, 0x7B, 0x5B, 0x01, 0x5F, 0xA7, 0xC9, 0x36,
0xA0, 0x1E, 0x73, 0x11, 0xB5, 0xD3, 0xB8, 0x3F, 0x8D, 0x88,
0x32, 0x6A, 0xE7, 0xCD, 0xB7, 0x1D, 0x31, 0x4E, 0x49, 0xE8,
0xB9
};
static const int sizeof_server_cert_der_1024 = sizeof(server_cert_der_1024);

Expand Down

0 comments on commit e95fa69

Please sign in to comment.