Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AWS TLS Expired Server Cert test #58

Merged

Conversation

AhmedIsmail02
Copy link
Member

@AhmedIsmail02 AhmedIsmail02 commented Mar 1, 2024

Description

This PR includes the following:

  • Add latest LTS release of coreSNTP FreeRTOS library.
  • Add helper library used for time synchronisation.
  • Add real clock time synchronisation to keyword-detection application.

Notes:

Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AhmedIsmail02 AhmedIsmail02 requested a review from a team as a code owner March 1, 2024 17:36
* can be a configuration used:
*
*/
#define democonfigLIST_OF_TIME_SERVERS "pool.ntp.org"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should consider using time.aws.com

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@archigup The coreSNTP example was used as reference for this implementation. I think, it's a good idea to switch to time.aws.com. Are there any prerequisites for using time.aws.com?

Copy link
Member Author

@AhmedIsmail02 AhmedIsmail02 Mar 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've switched to use time.aws.com and it seems to be working without any modifications needed.

archigup
archigup previously approved these changes Mar 1, 2024
@AhmedIsmail02 AhmedIsmail02 force-pushed the fix-aws-tls-expired-server-cert-test branch from eafb9b8 to 4ecfe79 Compare March 4, 2024 11:16
@AhmedIsmail02 AhmedIsmail02 force-pushed the fix-aws-tls-expired-server-cert-test branch from 4ecfe79 to e7800bd Compare March 6, 2024 10:30
@hugueskamba
Copy link
Contributor

@archigup @chinglee-iot @aggarg
Can you please review and if all well approve this?
Thank you

david-hazi-arm and others added 4 commits March 8, 2024 13:43
Fix `descrived` typo.

Signed-off-by: Dávid Házi <[email protected]>
Add latest LTS release of coreSNTP FreeRTOS library
to the FRI to be used for synchronisng embedded targets
clock time.

Signed-off-by: Ahmed Ismail <[email protected]>
This helper library shall be used with any FRI application
to add real clock time synchronisation for the target.

This addition is needed to fix AWS TLS Expired Server Cert
test which is part of AWS Device Advisor Validation tests as
this test requires the device under test to have synchronised
real time clock to be able to detect that the server's certificate
is expired and reject it.

Signed-off-by: Ahmed Ismail <[email protected]>
Add real clock time synchronisation to keyword-detection application
by using `coresntp` and `helpers-time-sync` libraries
This would require using MbedTLS time functions alternatives
to query the correct synchronised real clock time.

This addition would fix AWS TLS Expired Server Cert test
as previously, wrong clock time was fetched which result
in using expired server certificate. Now, correct clock
time would be fetched which results in target rejecting the
server's expired certificate which in turn fixes the test.

Signed-off-by: Ahmed Ismail <[email protected]>
@AhmedIsmail02 AhmedIsmail02 force-pushed the fix-aws-tls-expired-server-cert-test branch from e7800bd to 166e211 Compare March 8, 2024 15:19
@urutva urutva merged commit e703386 into FreeRTOS:main Mar 11, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants