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

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 quanngu...@mbm.vn 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

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

2012-07-23 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). PKCS#11

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-23 Thread helpcrypto helpcrypto
On Mon, Jul 23, 2012 at 9:00 AM, NdK ndk.cla...@gmail.com 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,

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

[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