-
Notifications
You must be signed in to change notification settings - Fork 28
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
Use x509-cert certificate builder #495
Use x509-cert certificate builder #495
Conversation
d9e4d73
to
37bd854
Compare
OID_NIST_P256 => Ok(AlgorithmId::EccP256), | ||
OID_NIST_P384 => Ok(AlgorithmId::EccP384), | ||
_ => Err(Error::AlgorithmError), | ||
pub struct Rsa1024; |
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.
Feels like I'm redefining AlgorithmId
, which is not great. (I'm considering replacing it entirely, but it's a pretty major API breakage).
bc4850c
to
ee3e1a0
Compare
@baloo looks like you need to update cli/src/terminal.rs:183 too, possibly replacing |
yes, I haven't got time to do that yet. |
c09e25c
to
c943415
Compare
@baloo whoops, tried to bump the |
Also I'm about to cut |
6e857e2
to
7a0de9c
Compare
Sorry I missed the RSA release train (fixed the deprecation notice) |
7a0de9c
to
e8e3a88
Compare
ran the ignored tests on a dummy yubikey:
|
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.
Looks good. I especially like how it cleans up the dependency tree.
Seems like there's some potential refactoring possible but that seems fine as a followup to me.
Will leave a note or two inline but they're not blocking.
@str4d can you take a look at this when you get a chance? |
95f6b96
to
b295d8a
Compare
The new function for Signer should be pub, not pub(crate). This would allow it to be used for things like generating SignedData. I'd also like to see the Attestation slot added to the list of SLOTS in piv.rs. These changes are here: carl-wallace@aef7c67. A gadget that uses this PR plus the suggested changes is here: https://github.com/carl-wallace/pbyk. |
@str4d unless you have any objections I'd like to merge this |
It's no longer used as of #495
makes use of RustCrypto/formats#764 for generating certificates.