Skip to content

Commit 3c09a22

Browse files
authored
Merge pull request #85 from sandeepmistry/ces-trust-anchor
Add trust anchor for: ces.iot.arduino.cc
2 parents b6a4587 + e96fe45 commit 3c09a22

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

src/utility/BearSSLTrustAnchor.h

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,26 @@ static const unsigned char TA0_EC_Q[] = {
4848
0x42, 0x89, 0x89, 0x55, 0x22
4949
};
5050

51-
static const br_x509_trust_anchor ArduinoIoTCloudTrustAnchor[1] = {
51+
static const unsigned char TA1_DN[] = {
52+
0x30, 0x50, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
53+
0x02, 0x55, 0x53, 0x31, 0x17, 0x30, 0x15, 0x06, 0x03, 0x55, 0x04, 0x0A,
54+
0x13, 0x0E, 0x41, 0x72, 0x64, 0x75, 0x69, 0x6E, 0x6F, 0x20, 0x4C, 0x4C,
55+
0x43, 0x20, 0x55, 0x53, 0x31, 0x0B, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
56+
0x0B, 0x13, 0x02, 0x49, 0x54, 0x31, 0x1B, 0x30, 0x19, 0x06, 0x03, 0x55,
57+
0x04, 0x03, 0x13, 0x12, 0x63, 0x65, 0x73, 0x2E, 0x69, 0x6F, 0x74, 0x2E,
58+
0x61, 0x72, 0x64, 0x75, 0x69, 0x6E, 0x6F, 0x2E, 0x63, 0x63
59+
};
60+
61+
static const unsigned char TA1_EC_Q[] = {
62+
0x04, 0x57, 0x4A, 0xF7, 0xFB, 0x20, 0x2A, 0x1E, 0xBD, 0x98, 0xD5, 0xA8,
63+
0xFF, 0xD4, 0xEF, 0x7B, 0x90, 0xB9, 0x37, 0xA0, 0xB7, 0x00, 0x16, 0x09,
64+
0x57, 0x3C, 0xD5, 0x92, 0x42, 0xAA, 0x9F, 0x78, 0xCF, 0xD5, 0x54, 0x21,
65+
0xE6, 0x28, 0x89, 0x73, 0x2A, 0x4E, 0xC3, 0x9D, 0xBC, 0x10, 0x57, 0x79,
66+
0x91, 0x87, 0x93, 0xD8, 0xAE, 0x15, 0xA7, 0xDB, 0x79, 0x56, 0x4D, 0x5F,
67+
0x96, 0x8D, 0xE3, 0xDC, 0x51
68+
};
69+
70+
static const br_x509_trust_anchor ArduinoIoTCloudTrustAnchor[2] = {
5271
{
5372
{ (unsigned char *)TA0_DN, sizeof TA0_DN },
5473
BR_X509_TA_CA,
@@ -61,10 +80,23 @@ static const br_x509_trust_anchor ArduinoIoTCloudTrustAnchor[1] = {
6180
}
6281
}
6382
}
83+
},
84+
{
85+
{ (unsigned char *)TA1_DN, sizeof TA1_DN },
86+
0,
87+
{
88+
BR_KEYTYPE_EC,
89+
{
90+
.ec = {
91+
BR_EC_secp256r1,
92+
(unsigned char *)TA1_EC_Q, sizeof TA1_EC_Q,
93+
}
94+
}
95+
}
6496
}
6597
};
6698

67-
#define ArduinoIoTCloudTrustAnchor_NUM (1)
99+
#define ArduinoIoTCloudTrustAnchor_NUM (2)
68100

69101
#endif /* BOARD_HAS_ECCX08 */
70102

0 commit comments

Comments
 (0)