Skip to content

Add `openpgp` subcommand

Adds the following subcommands under nethsm openpgp:

  • generate [KEY_ID] [USER_ID] - creates an OpenPGP certificate backed by an already existing key KEY_ID and appends one User ID, the certificate is saved to NetHSM and outputted on stdout,
  • sign [KEY_ID] - creates an OpenPGP signature for data on stdin and outputs the signature on stdout, this command requires that the generate command has been run,
  • import - imports an OpenPGP TSK file, extracts the certificate and stores it in NetHSM

Fixes #19 (closed)

Fixes #35 (closed)

Fixes #36 (closed)

Fixes #37 (closed)

Edited by Wiktor Kwapisiewicz

Merge request reports