Skip to main content

resolve_signing_key

Function resolve_signing_key 

Source
pub async fn resolve_signing_key(
    ca_cfg: &CaConfig,
    hsm: Option<&Arc<HsmContext>>,
) -> Result<ResolvedSigningKey, KipukaError>
Expand description

Resolve the CA signing key from configuration (async — uses tokio::fs::read).

Returns a ResolvedSigningKey that owns all key material. Use ResolvedSigningKey::as_signing_key to obtain a borrowed reference for issue_certificate.