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 #16

Open
sosthene-nitrokey opened this issue Mar 13, 2025 · 0 comments
Open

Support importing private keys functionality #16

sosthene-nitrokey opened this issue Mar 13, 2025 · 0 comments

Comments

@sosthene-nitrokey
Copy link
Contributor

Initially from @anotherbridge: Nitrokey#41

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 | 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
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

1 participant