Re: [opensc-devel] [opensc-commits] svn opensc changed [3663] store the generated public key on the token.

2009-03-12 Thread Alon Bar-Lev
The public key can be created in memory and not on token, this is also much faster. You can do whatever you like with the public key once in memory. The pkcs11-tool can always create the public key from the stored private key object whenever requested. Alon. On Thu, Mar 12, 2009 at 11:42 PM, Ric

[opensc-devel] [opensc-commits] svn opensc changed [3663] store the generated public key on the token.

2009-03-12 Thread Rickard Bondesson
True, the public key do take place. But you need the public to be able to verify signatures (private keys do not have the verify attribute). So you prefer that you create a temporary public key each time you want to verify anything? If you still do not want to create a public key token objec

[opensc-devel] [opensc-commits] svn opensc changed [3663] store the generated public key on the token.

2009-03-12 Thread Rickard Bondesson
And people expect to get a key pair on the token when using pkcs11- tool to generate a key pair. As of now they only get the private key since the public key is removed when the session closes. If they want to save space and remove the public key then use pkcs11- tool -b ... 12 mar 2009 kl.

Re: [opensc-devel] [opensc-commits] svn opensc changed [3663] store the generated public key on the token.

2009-03-12 Thread Alon Bar-Lev
This is not required, as one can get this from private key attributes or from the certificate. It just waste card storage... I read the message in reference, and I think that there should be a different solution for this without storing the public key. Alon. On Thu, Mar 12, 2009 at 10:33 AM, wr

Re: [opensc-devel] Problems with pkcs15

2009-03-12 Thread Andreas Jellinghaus
Am Donnerstag 12 März 2009 10:04:44 schrieb Marc Rios Valles: > Hi Andreas, > > I have found the error in my profile. I had a template and because of > this the files wasn't readed. Thank You a lot for all the help! Now > works correct. good to hear that. your welcome! Regards, Andreas __

Re: [opensc-devel] Problems with pkcs15

2009-03-12 Thread Marc Rios Valles
Hi Andreas, I have found the error in my profile. I had a template and because of this the files wasn't readed. Thank You a lot for all the help! Now works correct. Best Regards -- Marc Rios Vallès m...@c3po.es C3PO, S.A. http://www.c3po.es C/ Alejandro Goicoechea, 6 Local 9 - 08960 St. Just

Re: [opensc-devel] Problems with pkcs15

2009-03-12 Thread Andreas Jellinghaus
Am Donnerstag 12 März 2009 08:23:23 schrieb Marc Rios Valles: > Hi, > > Here is the debug of the function sc_pkcs15init_change_attrib(). > > First, in my profile I have this files: > 3f0051156001 Private key EF > 3f0051156002 Public key EF > 3f0051156006 Certificate EF > > And you can look in the p

Re: [opensc-devel] pkcs11-tool keygen

2009-03-12 Thread Ludovic Rousseau
2009/3/11 Peter Stuge : > Rickard Bondesson wrote: >> Will my patch be applied to the system? > > I hope so. I can't commit or I would have done so. > > Could someone please commit this? Committed in revision 3663 Thanks -- Dr. Ludovic Rousseau ___ op

Re: [opensc-devel] Problems with pkcs15

2009-03-12 Thread Marc Rios Valles
Hi, Here is the debug of the function sc_pkcs15init_change_attrib(). First, in my profile I have this files: 3f0051156001 Private key EF 3f0051156002 Public key EF 3f0051156006 Certificate EF And you can look in the pkcs15.profile the other files. I attach you the debug because it a little lo