Skip to content

Move To Yubikey 8#27

Open
obelisk wants to merge 10 commits intomainfrom
yk8
Open

Move To Yubikey 8#27
obelisk wants to merge 10 commits intomainfrom
yk8

Conversation

@obelisk
Copy link
Owner

@obelisk obelisk commented Apr 16, 2025

New Yubikeys come with AES rather than TDES management keys so we need to support that. Support is forthcoming in a new version of the Yubikey library but that means we must be current to get it. This upgrades us from Yubikey 0.7 to Yubikey 0.8.

This is still a work in progress, it compiles and appears to work but I'm not thrilled with the new API, nor the need to pull in both p256 and p384. Technically we should be able to get rid of those by creating our own types and implementing KeyType for them via ring but I don't know how much effort this is going to be.

PublicKeyInfo::Rsa { pubkey: _, .. } => panic!("RSA keys not supported"),
PublicKeyInfo::EcP256(pubkey) => (pubkey.as_bytes().to_vec(), AlgorithmId::EccP256),
PublicKeyInfo::EcP384(pubkey) => (pubkey.as_bytes().to_vec(), AlgorithmId::EccP384),
let cert = yk.configured(&slot).unwrap();
Copy link
Owner Author

Choose a reason for hiding this comment

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

This hasn't been tested

@timweri timweri mentioned this pull request Feb 16, 2026
timweri and others added 3 commits February 15, 2026 21:23
* Port x509/mod.rs

* WIP PIV verification

* Revert x509-parser -> x509-cert migration

* Create nongeneric yk::provision variants

* Add generate csr example

* Resolve conflict

* cargo

* undo

* Update API

* First attempt at keytype

* fmt

* Remove macro

* Fix test

* Fix generate csr test fail

* Minimize diff

* Remove debug

* New CTAP2 API

* Check all PRs

* Support AES

* Use API to fetch mgm key algorithm

* breaking yk.unlock

* unbreak

* unbreak
@timweri
Copy link
Collaborator

timweri commented Mar 14, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants