Re: [opensc-devel] Minidriver assume hexstring encoding for card serial number

2012-08-22 Thread Douglas E. Engert
On 8/22/2012 1:53 PM, Andreas Schwier wrote: > Yes, that's basically what our patch is all about. There are actually > two places in minidriver.c where the tokeninfo->serial_number value is > copied. We propose to change both as you can see in [1]. Looks good. > > Andreas > > [1] > https://gith

Re: [opensc-devel] Minidriver assume hexstring encoding for card serial number

2012-08-22 Thread Andreas Schwier
Yes, that's basically what our patch is all about. There are actually two places in minidriver.c where the tokeninfo->serial_number value is copied. We propose to change both as you can see in [1]. Andreas [1] https://github.com/CardContact/OpenSC/commit/724cdd06e23ecd2e822bd1f138d9c3fbdafe9324

Re: [opensc-devel] Minidriver assume hexstring encoding for card serial number

2012-08-22 Thread Douglas E. Engert
On 8/22/2012 11:24 AM, Andreas Schwier (ML) wrote: > Hi Douglas, > > see below. > > Am 22.08.2012 18:00, schrieb Douglas E. Engert: >> >> On 8/22/2012 10:09 AM, Andreas Schwier wrote: >>> Hi Douglas, >>> >>> thanks for your infos. >>> >>> The minidriver.c already ensures that the cardid file is a

Re: [opensc-devel] encrypt / decrypt

2012-08-22 Thread Douglas E. Engert
On 8/22/2012 10:51 AM, j.witvl...@mindef.nl wrote: > -Original Message- > From: opensc-devel-boun...@lists.opensc-project.org > [mailto:opensc-devel-boun...@lists.opensc-project.org] On Behalf Of Douglas > E. Engert > Sent: Wednesday, August 22, 2012 5:12 PM > To: opensc-devel@lists.ope

Re: [opensc-devel] Minidriver assume hexstring encoding for card serial number

2012-08-22 Thread Andreas Schwier (ML)
Hi Douglas, see below. Am 22.08.2012 18:00, schrieb Douglas E. Engert: > > On 8/22/2012 10:09 AM, Andreas Schwier wrote: >> Hi Douglas, >> >> thanks for your infos. >> >> The minidriver.c already ensures that the cardid file is always 16 byte. >> It does this by repeating the token serial number

Re: [opensc-devel] encrypt / decrypt

2012-08-22 Thread J.Witvliet
-Original Message- From: opensc-devel-boun...@lists.opensc-project.org [mailto:opensc-devel-boun...@lists.opensc-project.org] On Behalf Of j.witvl...@mindef.nl Sent: Wednesday, August 22, 2012 5:51 PM To: deeng...@anl.gov; opensc-devel@lists.opensc-project.org Subject: Re: [opensc-devel]

Re: [opensc-devel] Minidriver assume hexstring encoding for card serial number

2012-08-22 Thread Douglas E. Engert
On 8/22/2012 10:09 AM, Andreas Schwier wrote: > Hi Douglas, > > thanks for your infos. > > The minidriver.c already ensures that the cardid file is always 16 byte. > It does this by repeating the token serial number until 16 bytes are filled. Unfortunately that gives OpenbSC 16 bytes but does no

Re: [opensc-devel] encrypt / decrypt

2012-08-22 Thread J.Witvliet
-Original Message- From: opensc-devel-boun...@lists.opensc-project.org [mailto:opensc-devel-boun...@lists.opensc-project.org] On Behalf Of Douglas E. Engert Sent: Wednesday, August 22, 2012 5:12 PM To: opensc-devel@lists.opensc-project.org Subject: Re: [opensc-devel] encrypt / decrypt

Re: [opensc-devel] C_GetSlotList() returns 0 slots in Linux?

2012-08-22 Thread Ludovic Rousseau
2012/8/22 Andrew Zitnay : > I have a Linux user that I'm trying to get working with OpenSC. > However, according to my logs, C_GetSlotList() is finding 0 slots. > I'm unable to reproduce this problem on my own Linux box. > > The user claims the smart card reader is plugged in and working proper

Re: [opensc-devel] encrypt / decrypt

2012-08-22 Thread Douglas E. Engert
On 8/22/2012 9:50 AM, j.witvl...@mindef.nl wrote: > Hi all, > > I've been trying to make more use of our smartcards, but I think I am missing > the point some how. > What I would like to do is: > a) encrypt some data, by means of one of my private keys on my smartcard > someone else should be ab

Re: [opensc-devel] Minidriver assume hexstring encoding for card serial number

2012-08-22 Thread Andreas Schwier
Hi Douglas, thanks for your infos. The minidriver.c already ensures that the cardid file is always 16 byte. It does this by repeating the token serial number until 16 bytes are filled. We can ensure uniqueness of the serial number for our cards, but no uniqueness among all other card vendors. Th

[opensc-devel] encrypt / decrypt

2012-08-22 Thread J.Witvliet
Hi all, I've been trying to make more use of our smartcards, but I think I am missing the point some how. What I would like to do is: a) encrypt some data, by means of one of my private keys on my smartcard someone else should be able to decrypt it with the public key on my certificate. b) let s

Re: [opensc-devel] Minidriver assume hexstring encoding for card serial number

2012-08-22 Thread Douglas E. Engert
On 8/22/2012 5:28 AM, Andreas Schwier (ML) wrote: > Hi everyone, > > we've come across an issue with the minidriver which assumes the card > serial number to be a hex string. > > In our card the serial number is a string composed of ASCII characters. > This works well with pkcs15-tool and the PKC

[opensc-devel] C_GetSlotList() returns 0 slots in Linux?

2012-08-22 Thread Andrew Zitnay
I have a Linux user that I'm trying to get working with OpenSC. However, according to my logs, C_GetSlotList() is finding 0 slots. I'm unable to reproduce this problem on my own Linux box. The user claims the smart card reader is plugged in and working properly in Firefox/Thunderbird: Bus

[opensc-devel] C_GetSlotList() returns 0 slots in Linux?

2012-08-22 Thread azitnay
I have a Linux user that I'm trying to get working with OpenSC. However, according to my logs, C_GetSlotList() is finding 0 slots. I'm unable to reproduce this problem on my own Linux box. The user claims the smart card reader is plugged in and working properly in Firefox/Thunderbird: Bus 004

[opensc-devel] Minidriver assume hexstring encoding for card serial number

2012-08-22 Thread Andreas Schwier (ML)
Hi everyone, we've come across an issue with the minidriver which assumes the card serial number to be a hex string. In our card the serial number is a string composed of ASCII characters. This works well with pkcs15-tool and the PKCS#11 library, however it fails with the current minidriver when

Re: [opensc-devel] SOPIN and PUK in OpenSC

2012-08-22 Thread Jean-Michel Pouré - GOOZE
Le mercredi 22 août 2012 à 14:37 +0800, Grey0502 a écrit : > I'm confused that while I run the CMD: > pkcs15-init -C -p pkcs15 --pin 1234 --so-pin 123456 > I won't wanna store a PUK. it returned : > Failed to create PKCS #15 meta structure: Security status not > satisfied What is your token? OS?

Re: [opensc-devel] Supporting card Handelsbanken (SHB) BankID

2012-08-22 Thread Peter Stuge
Peter Åstrand wrote: > proprietary "BankID" application I suggest to try https://fribid.se/ out. //Peter ___ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel

[opensc-devel] SOPIN and PUK in OpenSC

2012-08-22 Thread Grey0502
Hi,all I'm confused that while I run the CMD: pkcs15-init -C -p pkcs15 --pin 1234 --so-pin 123456 I won't wanna store a PUK. it returned : Failed to create PKCS #15 meta structure: Security status not satisfied and I run the CMD bellow without any errors: pkcs15-init -C -p pkcs15 --pin 1234 --