Re: [opensc-devel] CA key on card: how?

2011-02-17 Thread Martin Paljak
Hello, On Feb 18, 2011, at 12:30 AM, NdK wrote: > On 17/02/2011 22:55, Andreas Jellinghaus wrote: > >> no, that wiki page is correct and works for me - done it a hundred times. >> it uses the key on the card, and the card does the signature (you cannot >> read the private key, a smart card won't

[opensc-devel] Implement PIN retries in entersafe driver

2011-02-17 Thread Xiaoshuo Wu
Hi, I've added SC_PIN_CMD_GET_INFO handling in entersafe_pin_cmd(), C_GetTokenInfo() will get PIN retries now, you can run "pkcs11-tool --test-hotplug" to see if PIN is locked. Regards, Xiaoshuo trunk.5121.pin_tries_left.diff Description: Binary data _

Re: [opensc-devel] CA key on card: how?

2011-02-17 Thread Andreas Jellinghaus
Am Donnerstag 17 Februar 2011, um 23:30:57 schrieb NdK: > On 17/02/2011 22:55, Andreas Jellinghaus wrote: > > no, that wiki page is correct and works for me - done it a hundred times. > > it uses the key on the card, and the card does the signature (you cannot > > read the private key, a smart card

Re: [opensc-devel] CA key on card: how?

2011-02-17 Thread NdK
On 17/02/2011 22:55, Andreas Jellinghaus wrote: > no, that wiki page is correct and works for me - done it a hundred times. > it uses the key on the card, and the card does the signature (you cannot > read the private key, a smart card won't ever give it to you). Yup. That's why keys are generated

Re: [opensc-devel] CA key on card: how?

2011-02-17 Thread Andreas Jellinghaus
Am Donnerstag 17 Februar 2011, um 22:24:41 schrieb NdK: > I've found a lot of tutorials to use openssl to generate self-signed > certs (OK for my root CA), but couldn't find one where the signature is > done by the card. Even on > http://www.opensc-project.org/engine_pkcs11/wiki/QuickStart no, tha

[opensc-devel] CA key on card: how?

2011-02-17 Thread NdK
Hi all. I'm now looking at another issue. Having stored "enough" certs on card, I'm now trying to push it to the limit. Seems that openssh can't be told which key to use, but that's not OpenSC related (unless someone here knows how to do it). So falling back to pam_pkcs11 and CA handling. I'v

Re: [opensc-devel] Strange VS preprocessor behavior

2011-02-17 Thread Martin Paljak
On Feb 17, 2011, at 7:56 PM, Viktor TARASOV wrote: > Hi, > > I'm trying to compile OpenSC on the > Windows Server 2008 R2 Enterprise OS 64-bit > using compiler > Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for > 80x86 > installed with Visual Studio v10.0 > > It seems

Re: [opensc-devel] Strange VS preprocessor behavior

2011-02-17 Thread Peter Stuge
Viktor TARASOV wrote: > Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 .. > It seems that for the quoted form of #include macro preprocessor do > not looks for the file to include in the directory of the file that > contains this #include statement. That seems wrong. Oh well

[opensc-devel] Strange VS preprocessor behavior

2011-02-17 Thread Viktor TARASOV
Hi, I'm trying to compile OpenSC on the Windows Server 2008 R2 Enterprise OS 64-bit using compiler Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86 installed with Visual Studio v10.0 It seems that for the quoted form of #include macro preprocessor do not looks for

Re: [opensc-devel] Secure Messaging and concurrent access to card

2011-02-17 Thread Juan Antonio Martinez
El jue, 17-02-2011 a las 16:50 +0100, Frank Morgner escribió: > On Monday, February 14 at 12:22PM, jons...@terra.es wrote: > > In the testing process of OpenDNIe I've found a problem related with > > concurrent > > access to opensc-pkcs11 library. (from a previous mail from Douglas) > Does the ca

Re: [opensc-devel] Secure Messaging and concurrent access to card

2011-02-17 Thread Frank Morgner
On Monday, February 14 at 12:22PM, jons...@terra.es wrote: > In the testing process of OpenDNIe I've found a problem related with > concurrent > access to opensc-pkcs11 library. > > In short: as DNIe can only handle one SM at a time (no virtual channel > support), > there is no (known) way to g

Re: [opensc-devel] [opensc-commits] svn opensc changed[5195] card-piv: 'ssize_t' is not defined when compiling with Visual Studio

2011-02-17 Thread Viktor TARASOV
On 16.02.2011 17:39, Douglas E. Engert wrote: > > > On 2/16/2011 6:21 AM, Martin Paljak wrote: >> Hello, >> On Feb 16, 2011, at 12:32 PM, webmas...@opensc-project.org wrote: >>> --- >>> card-piv: 'ssize_t' is not defined when compiling with Visual Studio >> >> (I'm on the road not connected