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

Add CRL logic to certificate verification #94

Merged
merged 2 commits into from
May 24, 2023

Conversation

nick-mobilecoin
Copy link
Collaborator

The [UnverifiedCertificateChain::verify] method now takes a list of
CRLs to check for revoked certificates.

Motivation

The [`UnverifiedCertificateChain::verify`] method now takes a list of
CRLs to check for revoked certificates.
@github-actions
Copy link

github-actions bot commented May 22, 2023

❌ Unreviewed dependencies found

Crate Version Reviews (N/2) LoC Left-Pad Index Geiger Flags

@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Merging #94 (20decd7) into nick/remove-alternate-cert-logic (00fae9a) will increase coverage by 0.17%.
The diff coverage is 99.53%.

@@                         Coverage Diff                          @@
##           nick/remove-alternate-cert-logic      #94      +/-   ##
====================================================================
+ Coverage                             97.63%   97.81%   +0.17%     
====================================================================
  Files                                     6        6              
  Lines                                  1736     1919     +183     
====================================================================
+ Hits                                   1695     1877     +182     
- Misses                                   41       42       +1     
Impacted Files Coverage Δ
verifier/src/x509.rs 95.42% <99.53%> (+7.30%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nick-mobilecoin nick-mobilecoin requested review from eranrund and cbeck88 and removed request for a team May 23, 2023 00:52
verifier/src/x509.rs Outdated Show resolved Hide resolved
verifier/src/x509.rs Outdated Show resolved Hide resolved
Previously the x509 types were using multiple `try_from()`
implementations. This made it implicit if the user was converting from a
PEM or a DER version, but it also made it more likely that someone might
inadvertently do `pem.as_bytes()` and have a failure trying to decode
the data as DER when in fact it was pem data. Now the dedicated methods
ensure the explicit types.
verifier/src/x509.rs Show resolved Hide resolved
@nick-mobilecoin
Copy link
Collaborator Author

@nick-mobilecoin started a stack merge that includes this pull request via Graphite.

Base automatically changed from nick/remove-alternate-cert-logic to main May 24, 2023 14:53
@nick-mobilecoin nick-mobilecoin merged commit 8702409 into main May 24, 2023
25 checks passed
@nick-mobilecoin
Copy link
Collaborator Author

@nick-mobilecoin merged this pull request with Graphite.

@nick-mobilecoin nick-mobilecoin deleted the nick/crl-for-mbedtls branch May 24, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Large PRs
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants