Skip to content

Commit

Permalink
Report trust path at startup (#17996)
Browse files Browse the repository at this point in the history
* Report trust path at startup

* Update src/controller/python/OpCredsBinding.cpp

Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>

* Update src/controller/python/OpCredsBinding.cpp

Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>

Co-authored-by: Tennessee Carmel-Veilleux <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Jan 31, 2024
1 parent e67206e commit 1012593
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/controller/python/OpCredsBinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,14 @@ ChipError::StorageType pychip_OpCreds_AllocateController(OpCredsContext * contex
auto devCtrl = std::make_unique<chip::Controller::DeviceCommissioner>();
VerifyOrReturnError(devCtrl != nullptr, CHIP_ERROR_NO_MEMORY.AsInteger());

if (paaTrustStorePath == nullptr)
{
paaTrustStorePath = "./credentials/development/paa-root-certs";
}
ChipLogProgress(Support, "Using device attestation PAA trust store path %s.", paaTrustStorePath);

// Initialize device attestation verifier
const chip::Credentials::AttestationTrustStore * testingRootStore = GetTestFileAttestationTrustStore(
paaTrustStorePath == nullptr ? "./credentials/development/paa-root-certs" : paaTrustStorePath);
const chip::Credentials::AttestationTrustStore * testingRootStore = GetTestFileAttestationTrustStore(paaTrustStorePath);
SetDeviceAttestationVerifier(GetDefaultDACVerifier(testingRootStore));

chip::Crypto::P256Keypair ephemeralKey;
Expand Down

0 comments on commit 1012593

Please sign in to comment.