-
Notifications
You must be signed in to change notification settings - Fork 165
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
Command line utility #187
base: main
Are you sure you want to change the base?
Command line utility #187
Conversation
bb29bf0
to
3ed5630
Compare
Codecov Report
@@ Coverage Diff @@
## main #187 +/- ##
=======================================
Coverage 71.70% 71.70%
=======================================
Files 17 17
Lines 1403 1403
=======================================
Hits 1006 1006
Misses 397 397
Continue to review full report at Codecov.
|
Updated the PR with a subcommand to verify server certificate. |
Follow-up to briansmith#187. I agree to license my contributions to each file under the terms given at the top of each file I changed.
Done. This is rebased on top #192. |
src/signed_data.rs
Outdated
/// All signature algorithms supported by the webpki crate. | ||
/// | ||
/// Note the list depends on whether `alloc` feature is on or off. | ||
pub static ALL_SIGNATURE_ALGORITHMS: &[&SignatureAlgorithm] = &[ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I know I asked you to move this into the library but that was a mistake on my part. Please move it back to where you had it before and add a comment to this:
// Keep in sync with ALL_SIGALGS
in tests/integration.rs.
For now it has two subcommands: * just parse end entity certificate * verify server certificate Is not meant to be public, does not provide a stable interface. Useful mostly for debugging of WebPKI itself. ``` % cargo run -p webpki-bin -- print-cert ./tests/netflix/ca.der ... target/debug/webpki: failed to parse a cert ./tests/netflix/ca.der: BadDER ``` ``` % cargo run -p webpki-bin -- verify-server-cert \ --server-cert tests/netflix/ee.der \ --trusted-root tests/netflix/ca.der \ --intermediates tests/netflix/inter.der \ --time 1492441716 ... server certificate tests/netflix/ee.der is valid ``` I agree to license my contributions to each file under the terms given at the top of each file I changed.
Reverted to the previous version. |
For now it has two subcommands:
Is not meant to be public, does not provide a stable interface.
Useful mostly for debugging of WebPKI itself.