I am totally guessing here, maybe I should not but here
goes:
pkcs15-init --delete-objects help
Delete arguments: a comma-separated list containing any of
the following:
privkey,pubkey,cert,chain,data
When "data" is specified, an --application-id must
also be specified,
in the other cases an "--id" must also be
specified
When "chain" is specified, the certificate chain
starting with the cert
with specified ID will be deleted, untill there's a CA
cert that certifies
another cert on the card
So based on your dump I read that as:
pkcs15-init --delete-objects data --application-id NONE
The thing that baffles me is the dump reads:
applicaionOID NONE
If it asks for an --ID then I would give it the object ID
that is listed
object 0
I hope this helps...
--
Dan
-----Original Message-----
From: opensc-user-bounces lists.opensc-project.org
[mailto:opensc-user-bounces lists.opensc-project.org]
On Behalf Of Bismark
Sent: Thursday, April 10, 2008 4:48 PM
To: opensc-user lists.opensc-project.org
Subject: Re: [opensc-user] Using pkcs15-init to delete data
Dan Peterson wrote:
> I have never done this but:
>
> pkcs15-init --delete-objects data --auth-id 01
Yep that is what I tried and I get this
$ pkcs15-init --delete-objects data --auth-id 01
error: Specify the --application-id for the data object to
be deleted
Aborting.
>
> --
> Dan
>
> -----Original Message-----
> From: opensc-user-bounces lists.opensc-project.org
> [mailto:opensc-user-bounces lists.opensc-project.org]
On Behalf Of
> Bismark
> Sent: Thursday, April 10, 2008 2:50 PM
> To: opensc-user lists.opensc-project.org
> Subject: [opensc-user] Using pkcs15-init to delete
data
>
> I've added a data object to my key by doing
>
> pkcs15-init --store-data some.data --auth-id 01
>
> Now I would like to delete it. When I try to use
`pkcs15-init
> --delete-objects data` it says I need the the
application id from the
> data object. The output from `pkcs15-tool
--list-data-objects` does
> not list an application id.
>
> Reading data object <0>
> applicationName: pkcs15-init
> Label:
> applicationOID: NONE
> Path: 3f0050153303
> Auth ID: 01
>
> How can I delete this data object?
>
> Thanks,
> Bis
>
>
_______________________________________________
opensc-user mailing list
opensc-user lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
|