Function get_key_certificate_state

Source
fn get_key_certificate_state(
    nethsm: &NetHsm,
    key_id: &KeyId,
    namespace: Option<&NamespaceId>,
) -> KeyCertificateState
Expand description

Retrieve the state of a key certificate.

Key certificates may be retrieved for system-wide keys or namespaced keys. Returns a KeyCertificateState, which may also encode reasons for why state cannot be retrieved.

ยงNote

It is assumed that the current credentials for the nethsm provide access to the key certificate of key key_id.