Skip to content

PIV: add support for external key generation #720

Closed

Description

@orolhawion

On my NK3 PIV I would like to import a P12 which contains a private key and an S/Mime Cert. This is currently not possible (denied with operation not supported).

While I understand that a private key should live and die on a device only, this is not very budget friendly. It forces me to buy multiple S/Mime certs for one email address as I need a private key and certificate request per device. Assume that I like to have my S/Mime cert on multiple devices for backup and convenience reasons.

Yubikeys allow the user to import P12 files with cert and private key which originates elsewhere. So I only have to pay for one cert and can use it on multiple devices.

Activity

  1. daringer commented on Jan 27, 2026

    @daringer
    Collaborator

    found another one requesting this feature - leaving this comment here to underline that..
    others: please +1 the initial post to show your support for such a feature

  2. n0xena commented on Jan 27, 2026

    @n0xena
    Contributor

    given importing keypairs is part of the piv spec I'm a bit surprised this isn't supported by nitrokey yet - as in: nitrokey is around 10 years providing hardware following a 20 year old spec
    nothin against nitrokey - but for the time its around I expected it a bit closer to what yubico provides with thier keys - but I got fooled already by investing in a solokey (which is dead and had thier piv disabled/removed because they only ever got a beta stage) - currently have my eyes on swissbit and token2 (via the latter I found the fido-bridge app which allows fido2 resident token via nfc on android - somthing android and the chrome browser should provide out of the box but doesn't due to some google foo)

  3. orolhawion commented on Jan 27, 2026

    @orolhawion
    Author

    It appears that FIPS 201 prohibits external key generation, at least for auth and sig keys. This may be one reason for Yubico to offer FIPS compliant yubikeys also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions