Re: [opensc-devel] Question about struct sc_pkcs15_id

2012-03-10 Thread evalues evalues
Hello, thanks for your answers. Now I understand where I had the problem. I will limit that the option --id only can have pairs numbers. Thank you. On Fri, Mar 9, 2012 at 11:20 PM, Viktor Tarasov wrote: > Hello, > > Le 09/03/2012 16:53, evalues evalues a écrit : > > Sorry, the id that I use for

Re: [opensc-devel] Question about struct sc_pkcs15_id

2012-03-09 Thread Viktor Tarasov
Hello, Le 09/03/2012 16:53, evalues evalues a écrit : > Sorry, the id that I use for the second certificate is 1000 For PKCS#15 the ID is an octet string. In the OpenSC tools the 'id' argument is treated as hexadecimal string. If this string length is odd, the last byte is hexadecimal value o

Re: [opensc-devel] Question about struct sc_pkcs15_id

2012-03-09 Thread Douglas E. Engert
Someone else needs to answer this, as I don't use pkcs15-init for the cards I am familiar with. On 3/9/2012 9:51 AM, evalues evalues wrote: > Hello, > > I try to add two certificates to the smart card with the command pkcs15-init > -T --store-certificate with the option --id, and I use the id 100

Re: [opensc-devel] Question about struct sc_pkcs15_id

2012-03-09 Thread evalues evalues
Sorry, the id that I use for the second certificate is 1000 Thank you. On Fri, Mar 9, 2012 at 4:51 PM, evalues evalues wrote: > Hello, > > I try to add two certificates to the smart card with the command > pkcs15-init -T --store-certificate with the option --id, and I use the id > 100 wi

Re: [opensc-devel] Question about struct sc_pkcs15_id

2012-03-09 Thread evalues evalues
Hello, I try to add two certificates to the smart card with the command pkcs15-init -T --store-certificate with the option --id, and I use the id 100 with the first certificate and I use the id 100 with the second certificate. When I try to add the second certificate I obtain that there is

Re: [opensc-devel] Question about struct sc_pkcs15_id

2012-03-07 Thread Douglas E. Engert
On 3/7/2012 7:05 AM, evalues evalues wrote: > Hello, you are right, I have not explained well the problem, sorry. > > I have a smartcard with three certificates and each certificate have a > different ID (first certificate have the (without dot, all ids are > numbers), second certifica

Re: [opensc-devel] Question about struct sc_pkcs15_id

2012-03-07 Thread evalues evalues
Hello, you are right, I have not explained well the problem, sorry. I have a smartcard with three certificates and each certificate have a different ID (first certificate have the (without dot, all ids are numbers), second certificate have the id 100 and third certificate have the id

Re: [opensc-devel] Question about struct sc_pkcs15_id

2012-03-06 Thread Douglas E. Engert
On 3/5/2012 10:45 AM, evalues evalues wrote: > Hello, > > how data is stored in this structure? I have been testing with numerical data > and I think that the data are converted to hexadecimal in pairs and from > right to left. For example, if I have the number > 55.555.555 is converted into 85

[opensc-devel] Question about struct sc_pkcs15_id

2012-03-05 Thread evalues evalues
Hello, how data is stored in this structure? I have been testing with numerical data and I think that the data are converted to hexadecimal in pairs and from right to left. For example, if I have the number 55.555.555 is converted into 85 85 85 85. It is a problem when the number ends in zero, bec