Store an Opaque Object.
Stores Opaque data (like an X.509 certificate) in the device. The size of the object is currently limited to what will fit into one message to the YubiHSM 2 (2028 bytes, including the headers).
Store the certificate in file cert.der
in the device:
yubihsm> put opaque 0 0 certificate 1 none opaque-x509-certificate cert.der Stored Opaque object 0xe255
Tc = 0x42 |
Lc = 2 + 40 + 2 + 8 + 1 + LO |
Vc = I || L || D || C || A || O |
I := Object ID (2 bytes)
L := Label (40 bytes)
D := Domains (2 bytes)
C := Capabilities (8 bytes)
A := Algorithm (1 byte)
O := Opaque data