Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 9a3281f

Browse files
committed
Added Test CA credentials.
These credentials will be used to generate test operational certificate by the Mock CA service.
1 parent 0875967 commit 9a3281f

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

src/test-apps/TestWeaveCertData.cpp

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,48 @@ extern const uint8_t sTestCert_CA_DER[] =
531531

532532
extern const size_t sTestCertLength_CA_DER = sizeof(sTestCert_CA_DER);
533533

534+
extern const uint8_t sTestCert_CA_PublicKey[] =
535+
{
536+
0x04, 0x2a, 0xea, 0xbf, 0x2f, 0xe0, 0xe5, 0x98, 0xf5, 0xb1, 0x8e, 0x70, 0xa6, 0x75, 0xc2, 0xdb,
537+
0xbd, 0x91, 0x04, 0xef, 0xd5, 0xc4, 0xcb, 0x9f, 0x53, 0xff, 0x17, 0xab, 0x29, 0x99, 0x6a, 0x89,
538+
0x03, 0xb9, 0x72, 0x87, 0xb9, 0xd6, 0x54, 0xab, 0xae, 0x6c, 0x5d, 0x01, 0x93, 0xab, 0xda, 0x7b,
539+
0xe4, 0x54, 0xd2, 0x63, 0x56, 0xba, 0x06, 0x5f, 0x9f
540+
};
541+
542+
extern const size_t sTestCertLength_CA_PublicKey = sizeof(sTestCert_CA_PublicKey);
543+
544+
extern const uint8_t sTestCert_CA_PrivateKey_Weave[] =
545+
{
546+
0xd5, 0x00, 0x00, 0x04, 0x00, 0x02, 0x00, 0x26, 0x01, 0x25, 0x00, 0x5a, 0x23, 0x30, 0x02, 0x1c,
547+
0xdb, 0x25, 0xd6, 0x23, 0x8c, 0xf5, 0x1c, 0xff, 0xf0, 0xd4, 0xc0, 0xd7, 0x4f, 0xfc, 0xde, 0x78,
548+
0xfa, 0xb2, 0x66, 0xd5, 0xf6, 0x83, 0xd2, 0x4e, 0xa2, 0xa8, 0x61, 0x9a, 0x30, 0x03, 0x39, 0x04,
549+
0x2a, 0xea, 0xbf, 0x2f, 0xe0, 0xe5, 0x98, 0xf5, 0xb1, 0x8e, 0x70, 0xa6, 0x75, 0xc2, 0xdb, 0xbd,
550+
0x91, 0x04, 0xef, 0xd5, 0xc4, 0xcb, 0x9f, 0x53, 0xff, 0x17, 0xab, 0x29, 0x99, 0x6a, 0x89, 0x03,
551+
0xb9, 0x72, 0x87, 0xb9, 0xd6, 0x54, 0xab, 0xae, 0x6c, 0x5d, 0x01, 0x93, 0xab, 0xda, 0x7b, 0xe4,
552+
0x54, 0xd2, 0x63, 0x56, 0xba, 0x06, 0x5f, 0x9f, 0x18
553+
};
554+
555+
extern const size_t sTestCertLength_CA_PrivateKey_Weave = sizeof(sTestCert_CA_PrivateKey_Weave);
556+
557+
extern const uint8_t sTestCert_CA_PrivateKey[] =
558+
{
559+
0xDB, 0x25, 0xD6, 0x23, 0x8C, 0xF5, 0x1C, 0xFF, 0xF0, 0xD4, 0xC0, 0xD7, 0x4F, 0xFC, 0xDE, 0x78,
560+
0xFA, 0xB2, 0x66, 0xD5, 0xF6, 0x83, 0xD2, 0x4E, 0xA2, 0xA8, 0x61, 0x9A
561+
};
562+
563+
extern const size_t sTestCertLength_CA_PrivateKey = sizeof(sTestCert_CA_PrivateKey);
564+
565+
extern const uint8_t sTestCert_CA_SubjectKeyId[] =
566+
{
567+
0x46, 0xF3, 0xF1, 0xAF, 0xDE, 0x30, 0x78, 0x9F
568+
};
569+
570+
extern const size_t sTestCertLength_CA_SubjectKeyId = sizeof(sTestCert_CA_SubjectKeyId);
571+
572+
extern const uint32_t sTestCert_CA_CurveId = nl::Weave::Profiles::Security::kWeaveCurveId_secp224r1;
573+
574+
extern const uint64_t sTestCert_CA_Id = 0x18B430EEFF000002ULL;
575+
534576

535577
/*
536578
CA_SHA256 Certificate

src/test-apps/TestWeaveCertData.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,17 @@ extern const size_t sTestCertLength_CA_Weave;
9595
extern const uint8_t sTestCert_CA_DER[];
9696
extern const size_t sTestCertLength_CA_DER;
9797

98+
extern const uint8_t sTestCert_CA_PublicKey[];
99+
extern const size_t sTestCertLength_CA_PublicKey;
100+
extern const uint8_t sTestCert_CA_PrivateKey_Weave[];
101+
extern const size_t sTestCertLength_CA_PrivateKey_Weave;
102+
extern const uint8_t sTestCert_CA_PrivateKey[];
103+
extern const size_t sTestCertLength_CA_PrivateKey;
104+
extern const uint8_t sTestCert_CA_SubjectKeyId[];
105+
extern const size_t sTestCertLength_CA_SubjectKeyId;
106+
extern const uint32_t sTestCert_CA_CurveId;
107+
extern const uint64_t sTestCert_CA_Id;
108+
98109
extern const uint8_t sTestCert_CA_SHA256_Weave[];
99110
extern const size_t sTestCertLength_CA_SHA256_Weave;
100111
extern const uint8_t sTestCert_CA_SHA256_DER[];

0 commit comments

Comments
 (0)