joemiller / yk-attest-verify Goto Github PK
View Code? Open in Web Editor NEWVerify and assert policy on YubiKey attestation certificates
License: Apache License 2.0
Verify and assert policy on YubiKey attestation certificates
License: Apache License 2.0
Verifying the attestation for PGP ed25519 signing and authentication keys works as intended.
However, PGP cv25519 encryption keys cannot be verified and result in the following error:
$ docker run --rm -it -v $(pwd)/att:/att:ro joemiller/yk-attest-verify pgp /att/att-statement-enc.pem /att/att-cert.pem --allowed-slots=enc
Error: x509: unsupported elliptic curve
I've encountered the following issue, using the current master (d77c47b):
$ yk-attest-verify piv att.pem signer.pem
Attestation Policy Checks:
✖ Unable to parse attestation cert: parsing extension: parsing formfactor: asn1: syntax error: truncated tag or length
I've tried exporting the attestation certificate using both ykman 4.0.1 and yubico-piv-tool, tried with RSA2048 and ECCP256 keys, and compiled the program with golang 1.14 (debian buster backports) and 1.15 (debian bullseye), but it just ends up like this.
By removing the whole case e.Id.Equal(extIDFormFactor)
block from pkg/piv/attestation.go, it executes successfully:
$ yk-attest-verify piv att.pem signer.pem
YubiKey PIV Attestation:
- Key slot : 9a
- YubiKey Version: v5.2.7
- Serial # : <redacted>
- Formfactor : Unspecified
- PIN Policy : Once
- Touch Policy : Cached
Attestation Policy Checks:
✔ All policy checks OK
If you'd like to see the .pem files I can send it privately.
This is a very nice project btw, and the openpgp part works great, thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.