Function load_nethsm_keyid

Source
pub(crate) fn load_nethsm_keyid() -> Result<(NetHsm, KeyId), Error>
Expand description

Creates a new [NetHsm] object with correct connection and user settings and returns it alongside with the [KeyId] that should be used for signing.

ยงErrors

Returns an error if configuration:

  • loading encounters errors
  • does not contain any key ID settings
  • does not contain NetHSM connections
  • does not contain credentials with a passphrase