Skip to content

Conversation

alessio-perugini
Copy link
Contributor

@alessio-perugini alessio-perugini commented Aug 30, 2023

After #212 we can leverage the usage of ConnectionState.VerifiedChains and per docs:

last element is from Config.RootCAs

So the last element of the VerifiedChains will be the actual RootCA!

@codecov-commenter
Copy link

codecov-commenter commented Aug 30, 2023

Codecov Report

❌ Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 13.19%. Comparing base (f07445f) to head (7dc0404).
⚠️ Report is 46 commits behind head on main.

Files with missing lines Patch % Lines
certificates/certutils.go 80.00% 1 Missing and 1 partial ⚠️
cli/certificates/flash.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #216      +/-   ##
==========================================
+ Coverage   12.10%   13.19%   +1.09%     
==========================================
  Files          20       20              
  Lines        1165     1167       +2     
==========================================
+ Hits          141      154      +13     
+ Misses        971      957      -14     
- Partials       53       56       +3     
Flag Coverage Δ
unit 13.19% <66.66%> (+1.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alessio-perugini alessio-perugini force-pushed the fix-bug-on-certificates-scraper branch from 179bba4 to 7c13b50 Compare August 30, 2023 14:27
@alessio-perugini alessio-perugini self-assigned this Aug 30, 2023
@alessio-perugini alessio-perugini added the type: imperfection Perceived defect in any part of project label Aug 30, 2023
Copy link
Member

@cmaglie cmaglie left a comment

Choose a reason for hiding this comment

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

Great catch! I've pushed a suggestion but otherwise, looks good to me.

In the uno r4 we're using mbedtls which has a strange behaviour. And some root certificates won't work. Therfore the most simple solution is using all the possible ones, found during the handshake.
@per1234 per1234 added the topic: code Related to content of the project itself label Aug 30, 2023
Copy link
Contributor

@per1234 per1234 left a comment

Choose a reason for hiding this comment

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

Thanks Alessio!

@alessio-perugini alessio-perugini merged commit d945078 into main Aug 31, 2023
@alessio-perugini alessio-perugini deleted the fix-bug-on-certificates-scraper branch August 31, 2023 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants