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

Apply additional X509 validation checks on certificates sourced from trust store #2230

Open
wants to merge 2 commits into
base: x509
Choose a base branch
from

Conversation

skmcgrail
Copy link
Member

Description of changes:

Improves validation of certificates by also applying additional checks for certificates retrieved from the trust store. This aligns AWS-LC with OpenSSL 1.1.1 and later behavior.

Testing:

Add a root certificate that does not have the expected basicConstraints extension with the cA bit set to true. This certificate would be rejected by OpenSSL, but is currently allowed to be trusted by AWS-LC due to it being in the trust store.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@skmcgrail skmcgrail requested a review from a team as a code owner February 28, 2025 23:02
@skmcgrail skmcgrail changed the title Rfc5280 4.2.1.9 Apply additional X509 validation checks on certificates sourced from trust store Feb 28, 2025
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.05%. Comparing base (50e6d59) to head (3642a97).
Report is 3 commits behind head on x509.

Additional details and impacted files
@@            Coverage Diff             @@
##             x509    #2230      +/-   ##
==========================================
- Coverage   79.05%   79.05%   -0.01%     
==========================================
  Files         612      612              
  Lines      106476   106515      +39     
  Branches    15051    15053       +2     
==========================================
+ Hits        84177    84207      +30     
- Misses      21646    21655       +9     
  Partials      653      653              

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

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.

2 participants