Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support importing private keys functionality #41

Open
anotherbridge opened this issue Nov 24, 2023 · 1 comment
Open

Support importing private keys functionality #41

anotherbridge opened this issue Nov 24, 2023 · 1 comment

Comments

@anotherbridge
Copy link

Type

Feature Request

Description

After running the generate command of pivy-tool worked well as expected and I was able to create a CSR as well as import a certificate that I got from the CSR I wanted to check whether it is also possible to import keys that have been previously created using the import functionality of pivy-tool and ran

cat <path to private key> | pivy-tool import 9A

The response I got was the following:

pivy-tool: error occurred while executing 'import'
  Caused by cmd_import: failed to import key
    in cmd_import() at pivy-tool.c:1492
  Caused by NotSupportedError: Importing private keys not supported by PIV device 'Nitrokey Nitrokey 3'
    in ykpiv_import() at piv.c:3345
  Caused by APDUError: Card replied with SW=6a81 (FUNC_NOT_SUPPORTED) to INS_IMPORT_ASYM(9a)
    in ykpiv_import() at piv.c:3345

Therefore I wanted to open this feature request for implementing this functionality.

Further Info

  • pivy Version: 0.11.2
  • Firmware version: v1.5.0-test.20231030
@sosthene-nitrokey sosthene-nitrokey transferred this issue from Nitrokey/nitrokey-3-firmware Nov 24, 2023
@sosthene-nitrokey sosthene-nitrokey changed the title PIV - Support importing private keys functionality Support importing private keys functionality Nov 24, 2023
@sosthene-nitrokey
Copy link
Collaborator

Indeed that feature is not yes implemented. I transferred the issue to the relevant repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants