Skip to content

Implement a per-key signing/usage counter #616

@hailfinger

Description

@hailfinger

I would like to check how often a specific private key has been used to sign something. This is not a count-down-style key use counter as in https://support.nitrokey.com/t/key-counter-in-nitrokey-hsm/658 , but rather a count-up counter.

Motivation: Allow cross-checks between logs of a local process (step-ca) using the Nitrokey to sign certificates and the number of signatures performed as reported by the Nitrokey. That way, even a rogue admin with physical access to the Nitrokey and the ability to tamper with logs can not conceal that issuing a rogue certificate will have incremented the signature counter.

A similar counter mechanism may also be attractive for Passkey functionality.

It might make sense to sign reports of key usage counts with a device key and ensure freshness of the report.

This is just a nice-to-have wishlist item, not a bug report. Thank you for creating Nitrokeys.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions