Skip to main content

setup_single_key_in_mockhsm

Function setup_single_key_in_mockhsm 

Source
pub fn setup_single_key_in_mockhsm(
    key_id: Id,
    credentials: &Credentials,
) -> Result<Connector, Error>
Expand description

Sets up a single signing key for use with OpenPGP signing in a MockHSM.

The credentials are used to setup authentication for a signing key with key_id. Both signing and authentication key are located in domain one.

§Warning

The signing key created by this function should be used only for tests as the signing material is exposed in memory!

§Errors

When automatic provisioning of the connector fails this function can return Error.