oxidecomputer / dice-util

utilities for cert template generation and manufacturing / certifying DeviceIds
Mozilla Public License 2.0
7 stars 3 forks source link

`verifier-cli` persist binary artifacts as JSON #222

Closed flihp closed 2 months ago

flihp commented 2 months ago

verifier-cli stores some output as binary instead of text (everything that's not PEM encoded currently). On the programming station we want to persist these artifacts by dumping them to stdout which doesn't work great w/ binary. We could base64 encode them but then to perform the verification out of band we'll need to convert them back to binary. Probably cleaner to persist everything as text (either PEM or JSON).

flihp commented 2 months ago

221 accomplishes this for the verify, verify-attestation and verify-cert-chain commands