Skip to content

Add PKCS#11 release signing#366

Draft
cyclic-pentane wants to merge 23 commits intomasterfrom
pkcs11-signing
Draft

Add PKCS#11 release signing#366
cyclic-pentane wants to merge 23 commits intomasterfrom
pkcs11-signing

Conversation

@cyclic-pentane
Copy link
Collaborator

@cyclic-pentane cyclic-pentane commented Feb 27, 2026

Useful for signing your builds with keys that reside on hardware tokens, e.g. YubiKeys. Still a work-in-progress.

TODO:

  • don't overwrite existing keys on YubiKey in scripts
  • don't check for on-disk private keys in verifyKeysScript, but for the keys being there on the token with openssl
  • script for importing pre-existing keys into a YubiKey
  • don't hardcode key algorithms in YubiKey PIV key generation script
  • OTA payload signing
  • write option docs
  • PKMD derivation from X.509 certs
  • set custom sign_target_files_apk options
  • pass PIV PIN file to signapk.jar
  • test everything (initial flash AND ota upgrade)
  • add NEWS entry
  • docs

@cyclic-pentane cyclic-pentane force-pushed the pkcs11-signing branch 8 times, most recently from 37dc455 to 2dd33ed Compare March 4, 2026 19:40
ykman seems to have some undeclared dependency that makes it break when
you clear PATH. Gonna debug this soon
We need this for PKCS#11 signing, since the version bump of libp11 that
added the openssl PKCS#11 provicer only landed recently.

Also, pin nixfmt to the old nixpkgs one so we don't have to reformat
everything for the CI to be ready yet.
This makes it a lot easier to read for debugging purposes.
Looks like I have a slippery `p` key.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant