Re: [opensc-devel] Prompt for SO PIN in Firefox

2012-07-26 Thread Robert Relyea
On 07/20/2012 09:37 PM, Nguyễn Hồng Quân wrote: Hello every one, I want to generate key in Firefox with my OpenPGP card. The OpenPGP card need Admin PIN (SO PIN) to do that. However, I didn't see dialog box to ask for this PIN, so the generation fails. So, is there a way to ask for SO PIN via P

Re: [opensc-devel] Prompt for SO PIN in Firefox

2012-07-24 Thread Nguyễn Hồng Quân
Thank you for your reply. On Tue 24 Jul 2012 01:44:28 PM ICT, helpcrypto helpcrypto wrote: > On Tue, Jul 24, 2012 at 4:16 AM, Nguyễn Hồng Quân wrote: >> Hi, >> >> I heard that you are successful to implement Admin PIN callback in PKCS#11. >> Which card did you do? Can it be applied to OpenPGP? If

Re: [opensc-devel] Prompt for SO PIN in Firefox

2012-07-23 Thread helpcrypto helpcrypto
On Tue, Jul 24, 2012 at 4:16 AM, Nguyễn Hồng Quân wrote: > Hi, > > I heard that you are successful to implement Admin PIN callback in PKCS#11. > Which card did you do? Can it be applied to OpenPGP? If yes, how should we > do? > > Thanks. Where did you read that? I didnt say it... We have a very o

Re: [opensc-devel] Prompt for SO PIN in Firefox

2012-07-23 Thread helpcrypto helpcrypto
On Mon, Jul 23, 2012 at 9:00 AM, NdK wrote: > The problem with FF (and TB) is that it calls C_login only once, then > assumes the login is still valid. Even if card got reset. Then you should return the appropiate PKCS#11 error values, and thats all. Isnt it so? > Even worse, it asks for *ALL*

Re: [opensc-devel] Prompt for SO PIN in Firefox

2012-07-23 Thread NdK
Il 23/07/2012 08:49, helpcrypto helpcrypto ha scritto: > IIRC, C_Login can accept user type CKU_SO to login as admin, the > problem might be "what you could do as admin". Probably that depends > on the card. The problem with FF (and TB) is that it calls C_login only once, then assumes the login is

Re: [opensc-devel] Prompt for SO PIN in Firefox

2012-07-22 Thread helpcrypto helpcrypto
> Le 21/07/2012 06:37, Nguyễn Hồng Quân a écrit : >> So, is there a way to ask for SO PIN via PKCS#11? >> If yes, how should the code of card support be changed? > > I have no solution, > PIN callbacks is not supported by PKCS#11 framework (in the manner as it's > supported by pkcs15-init tool). >

Re: [opensc-devel] Prompt for SO PIN in Firefox

2012-07-22 Thread Viktor Tarasov
Hello, Le 21/07/2012 06:37, Nguyễn Hồng Quân a écrit : > I want to generate key in Firefox with my OpenPGP card. The OpenPGP card > need Admin PIN (SO PIN) to do that. However, I didn't see dialog box to > ask for this PIN, so the generation fails. > > So, is there a way to ask for SO PIN via PK

[opensc-devel] Prompt for SO PIN in Firefox

2012-07-20 Thread Nguyễn Hồng Quân
Hello every one, I want to generate key in Firefox with my OpenPGP card. The OpenPGP card need Admin PIN (SO PIN) to do that. However, I didn't see dialog box to ask for this PIN, so the generation fails. So, is there a way to ask for SO PIN via PKCS#11? If yes, how should the code of card supp