-
Notifications
You must be signed in to change notification settings - Fork 712
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
pkcs15-init with Oberthur Cosmo v7 Card: "Failed to store private key: Invalid data" #2693
Comments
The code is failing here: Can you get a debug log? See The code is trying to import a private key. Where did you get the PKCS12 file? |
I had a PKCS12 file, i splitted the private key from the PKCS12 in PEM format. |
What was the command line you used? https://github.com/OpenSC/OpenSC/blob/master/src/pkcs15init/README says:
" |
Closing this issue due to inactivity. Please re-open the ticket if more input is available. |
Bonjour,
I am trying to import PKCS12 file in Oberthur Cosmo v7.0 smart card but it fails with the error "Failed to store private key: Invalid data"
The verbose command shows the following output:
[pkcs15-init] pkcs15-authentic.c:692:authentic_pkcs15_store_key: Invalid PrKey SDO data: -1305 (Invalid data)
[pkcs15-init] pkcs15-lib.c:1817:sc_pkcs15init_store_private_key: Card specific 'store key' failed: -1305 (Invalid data)
[pkcs15-init] pkcs15-lib.c:1842:sc_pkcs15init_store_private_key: returning with: -1305 (Invalid data)
I am using OpenSC version 0.23.0
Please guide me.
Regards
Scotty
The text was updated successfully, but these errors were encountered: