Hello,

On Wed, Jun 20, 2012 at 5:19 AM, Quan Nguyen <quanngu...@mbm.vn> wrote:

> I'm trying to implementing key import support for OpenPGP. I've almost
> done at the driver level and I'm continuing in pkcs15init, but face a
> problem:
>
> It seems that the pkcs15-init tool does not allow to overwrite existing
> key. When I provide key ID to import, it always reject if the ID has
> existed.
>
> Is there a reason why the pkcs15-init do so?
>

The reason is to protect from overwriting the existing objects.


Can the behavior be changed? Or there is another way to make pkcs15-init to
> overwrite?
>


Overwrite not,
for the native cards the method is to delete existing object and then
create a new one with the same ID.



>
> My command to test:
> pkcs15-init --store-private-key quan-key.pem  --auth-id 3 --verify-pin
> --extractable --id 4
>
> --
> Regards,
> Quân
>
>
> _______________________________________________
> opensc-devel mailing list
> opensc-devel@lists.opensc-project.org
> http://www.opensc-project.org/mailman/listinfo/opensc-devel
>
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to