List Info

Thread: Using pkcs15-init to delete data




Using pkcs15-init to delete data
country flaguser name
United States
2008-04-10 16:50:11
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-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Using pkcs15-init to delete data
country flaguser name
United States
2008-04-10 17:27:04
I have never done this but:

pkcs15-init --delete-objects data --auth-id 01

--
Dan

-----Original Message-----
From: opensc-user-bounceslists.opensc-project.org
[mailto:opensc-user-bounceslists.opensc-project.org]
On Behalf Of Bismark
Sent: Thursday, April 10, 2008 2:50 PM
To: opensc-userlists.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-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Using pkcs15-init to delete data
country flaguser name
United States
2008-04-10 18:47:34
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-bounceslists.opensc-project.org
> [mailto:opensc-user-bounceslists.opensc-project.org]
On Behalf Of Bismark
> Sent: Thursday, April 10, 2008 2:50 PM
> To: opensc-userlists.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-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Using pkcs15-init to delete data
country flaguser name
United States
2008-04-10 20:30:34
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-bounceslists.opensc-project.org
[mailto:opensc-user-bounceslists.opensc-project.org]
On Behalf Of Bismark
Sent: Thursday, April 10, 2008 4:48 PM
To: opensc-userlists.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-bounceslists.opensc-project.org
> [mailto:opensc-user-bounceslists.opensc-project.org]
On Behalf Of
> Bismark
> Sent: Thursday, April 10, 2008 2:50 PM
> To: opensc-userlists.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-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user
Re: Using pkcs15-init to delete data
user name
2008-04-11 00:44:22
I have added to trunk some more info on data objects.
If I remember correctly, before I had to do --application-id
-1

Alon.

On 4/11/08, Bismark <bismarkfoofus.net> wrote:
> 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-userlists.opensc-project.org
>  http://www.opensc-project.org/mailman/listinfo/opensc-
user
>
>
_______________________________________________
opensc-user mailing list
opensc-userlists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-
user

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )