Skip to content

pkcs15-init with Oberthur Cosmo v7 Card: "Failed to store private key: Invalid data" #2693

@scottthomas007

Description

@scottthomas007

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

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