Hi,
I have looked at the below.
For OpenSC 0.15: Are you sure about the compatibility? That’s something I haven’t seen mentioned neither in the product description, nor the support section.
First about the error Failed to store private key: Non unique object ID. The OpenSC wiki mentions a bit later the command how to delete a certificate - however doesn’t look obvious to me why in the command to import a complete PKCS12 only pubkey and privkey are deleted - but not the cert. Maybe I should ask the OpenSC folks if the wording …
Seems rather difficult to import said cert and key from a *.p12 file.
What is the official/correct way of doing this?
I have managed to import a cert in DER format on it’s own.
The PKCS12 file is also binary right so no need for any conversions?
Pardon my ignorance, but does the CA cert get imported too?
Thank you.
Hi,
this forum post is really old. I suggest to have a look at our instructions first.
Please let us know if this did help you.
Kind regards
Alex
Hi,
I managed to get the *.p12 installed.
The below command gives me an error at first try:
pkcs15-init -vv --delete-objects privkey,pubkey --id 03 --store-private-key …/Documents/robert.gabriel_ipa.gsoc.local.p12 --format pkcs12 --auth-id 03 --verify-pin
pkcs15-init: card-openpgp.c:2715: pgp_build_extended_header_list: Assertion `key_info->e_len <= req_e_len’ failed.
Second try succeeds.
Thank you.