You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure where to post this, but in case you want to augment the documentation you have online for yubihsm-shell, today I got the YubiHSM2 working with Android's apksigner successfully (for WireGuard). I figure I should write down the details somewhere.
Replace my-key-id with the object ID and my-key-name with the object label.
There are various ways to generate keys or import keys or manage CSRs. The important nuance here is that both the private key and the opaque-x509-certificate public certificate need to be added with the same object ID.
Replace the connector field with a different URI, if you're using the YubiHSM2 over a network. Replace the library path with a different path if your distro's yubihsm-shell puts the yubihsm_pkcs11.so file elsewhere.
Make simple variable file to be sourced by scripts
Replace 0001 if your YubiHSM2 auth key object is not of ID 0001. Replace the invocation of pass if you're managing passphrases differently. Replace my-key-name with the object label set earlier. Remove the -J-add-opens argument if you're running old java.
Not sure where to post this, but in case you want to augment the documentation you have online for yubihsm-shell, today I got the YubiHSM2 working with Android's
apksigner
successfully (for WireGuard). I figure I should write down the details somewhere.Android Signing with YubiHSM2
Initial key import
In a tmpfs:
Replace
my-key-id
with the object ID andmy-key-name
with the object label.There are various ways to generate keys or import keys or manage CSRs. The important nuance here is that both the private key and the opaque-x509-certificate public certificate need to be added with the same object ID.
Create various files
Replace the
connector
field with a different URI, if you're using the YubiHSM2 over a network. Replace the library path with a different path if your distro's yubihsm-shell puts theyubihsm_pkcs11.so
file elsewhere.Make simple variable file to be
source
d by scriptsReplace
0001
if your YubiHSM2 auth key object is not of ID 0001. Replace the invocation ofpass
if you're managing passphrases differently. Replacemy-key-name
with the object label set earlier. Remove the-J-add-opens
argument if you're running old java.Sign files using
apksigner
from scriptsThe text was updated successfully, but these errors were encountered: