-
Notifications
You must be signed in to change notification settings - Fork 0
Low-level revocation checking #9
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
base: jbp-cache-dir
Are you sure you want to change the base?
Conversation
| cert_serial: String, | ||
|
|
||
| /// The SHA256 hash of the issuer's SubjectPublicKeyInfo structure. | ||
| /// | ||
| /// This must be the base64 encoding of precisely 32 bytes. | ||
| issuer_spki_hash: String, | ||
|
|
||
| /// The Certificate Transparency logs and inclusion timestamps extracted | ||
| /// from the end-entity certificate. | ||
| /// | ||
| /// Ths option should be supplied once for each log. | ||
| /// | ||
| /// The format should be the base64 encoding of the CT log id, followed by | ||
| /// a colon, followed by the decimal encoding of the timestamp. | ||
| ct_timestamps: Vec<String>, | ||
|
|
||
| /// Return an error, and exit with code 2, if the certificate is not covered | ||
| /// by the filter set. | ||
| /// | ||
| /// The default behaviour is to treat the certificate as unrevoked. | ||
| #[arg(long)] | ||
| error_if_uncovered: bool, |
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.
How about we use more specific types here and wire up clap to understand how to parse these?
For error-if-uncovered, maybe a more concise and less specific name like strict?
| @@ -0,0 +1,74 @@ | |||
| import base64 | |||
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.
Would you like me to port this to Rust?
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.
Yes please, eventually I would like to stuff everything into a singular rust program in revoke-test with the same output JSON, so switching over from the python version produces no change in output (which also checks that our rust code agrees with pyca's rust code).
| @@ -0,0 +1,36 @@ | |||
| //! NB. these tests require an up-to-date `revoke-test/decorated.json` input, and | |||
| //! a that the fetched revocation data set matches. They run `upki fetch` into | |||
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.
Nit: dangling "into".
No description provided.