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 logic to decode and verify certificate #49

Merged
merged 3 commits into from
Apr 25, 2023
Merged

Conversation

nick-mobilecoin
Copy link
Collaborator

@nick-mobilecoin nick-mobilecoin commented Mar 22, 2023

A DER encoded certificate can now be decoded and have it's signature
verified

Added expiry time as a task on #50

@nick-mobilecoin
Copy link
Collaborator Author

nick-mobilecoin commented Mar 22, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions github-actions bot added rust Pull requests that update rust code size/L Large PRs labels Mar 22, 2023
@github-actions github-actions bot added the github_actions Pull requests that update github actions label Mar 22, 2023
@codecov
Copy link

codecov bot commented Mar 22, 2023

Codecov Report

Merging #49 (aa567c9) into main (f233518) will increase coverage by 0.44%.
The diff coverage is 98.75%.

@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
+ Coverage   95.78%   96.23%   +0.44%     
==========================================
  Files           3        4       +1     
  Lines         902     1062     +160     
==========================================
+ Hits          864     1022     +158     
- Misses         38       40       +2     
Impacted Files Coverage Δ
verifier/src/lib.rs 90.51% <ø> (ø)
verifier/src/certs.rs 98.75% <98.75%> (ø)

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

@nick-mobilecoin nick-mobilecoin marked this pull request as ready for review March 22, 2023 21:14
@nick-mobilecoin nick-mobilecoin requested a review from jcape as a code owner March 22, 2023 21:14
@nick-mobilecoin nick-mobilecoin self-assigned this Mar 22, 2023
@nick-mobilecoin nick-mobilecoin requested review from a team and NotGyro and removed request for a team March 22, 2023 21:19
Copy link

@NotGyro NotGyro left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@nick-mobilecoin nick-mobilecoin requested review from a team and awygle April 18, 2023 17:17
@nick-mobilecoin nick-mobilecoin removed the request for review from a team April 19, 2023 17:32
@github-actions
Copy link

github-actions bot commented Apr 19, 2023

❌ Unreviewed dependencies found

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

verifier/src/certs.rs Outdated Show resolved Hide resolved
verifier/src/certs.rs Show resolved Hide resolved
verifier/src/certs.rs Outdated Show resolved Hide resolved
A DER encoded certificate can now be decoded and have it's signature
verified
Previously the x509 certificate logic was always built as part of the
`mc-attestation-verifier` crate. Now the x509 certificate logic is
guarded by the `alloc` feature so that the crate can still be built in
no alloc environments with limited capability.
Previously the PEM strings used in testing were embedded in the test
modules. Now the pem contents are in individual files which are accessed
via `include_str!`.
@nick-mobilecoin
Copy link
Collaborator Author

@nick-mobilecoin queued this pull request to merge with Graphite.

@nick-mobilecoin nick-mobilecoin merged commit c705e87 into main Apr 25, 2023
@nick-mobilecoin nick-mobilecoin deleted the nick/cert-verify branch April 25, 2023 22:21
@nick-mobilecoin
Copy link
Collaborator Author

@nick-mobilecoin merged this pull request with Graphite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update github actions rust Pull requests that update rust code size/L Large PRs
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants