Skip to content

Commit

Permalink
chip-cert: Added Request To Check that KeyUsageFlags::kDigitalSignat …
Browse files Browse the repository at this point in the history
…is Set for NOC Validation (#22061)
  • Loading branch information
emargolis authored Aug 25, 2022
1 parent d8ce6bc commit 3a2337e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tools/chip-cert/Cmd_ValidateCert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ bool Cmd_ValidateCert(int argc, char * argv[])
uint32_t currentTime;
res = chip::UnixEpochToChipEpochTime(static_cast<uint32_t>(time(nullptr)), currentTime);
context.mEffectiveTime.Set<CurrentChipEpochTime>(currentTime);
context.mRequiredKeyUsages.Set(KeyUsageFlags::kDigitalSignature);
VerifyTrueOrExit(res);

err = certSet.FindValidCert(certToBeValidated->mSubjectDN, certToBeValidated->mSubjectKeyId, context, &validatedCert);
Expand Down

0 comments on commit 3a2337e

Please sign in to comment.