[opensc-devel] adding support for a java applet

2012-10-16 Thread aidin boghaniyan
Hi,
I have some kona25 http://www.tagsystems.net/downloads java card, and I
must provide a pkcs11 interface for them.
I know that the best way for using them with OpenSC is loading Muscle
applet on it, but I was unsuccessful on this solution.
Indeed, I have loaded muscle applet using
gpjhttp://sourceforge.net/projects/gpj/(java global platform), and I
add my card ATR to the list of Muscle card
supported ATRs, but when I use this card with OpenSC, I got the
unsupported card error, and when I debug code, I detect the problems is
from muscle_match_card function. This function doesn't receive what it
expects form card, so the card will be unsupported.
I tried to load another cap file of the Muscle applet, but there was no
change.
Does anybody had any advise?

Another solution for me is using Java Card
Signhttp://sourceforge.net/projects/javacardsign/
applet, and writing a PKCS11 driver for this card. I have loaded this
applet on my card and communicate successfully with this applet from host
application of it. This applet and it's host application are open source.
So my main question is that, Is this solution the best solution that I can
choose?

Regards
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Re: [opensc-devel] [Muscle] Ubuntu 12.04 smartcard reader install? AKA: Dear Canonical: could you fix this?

2012-10-16 Thread helpcrypto helpcrypto
On Thu, Oct 11, 2012 at 3:37 PM, Ludovic Rousseau
ludovic.rouss...@gmail.com wrote:

 I havent restarted yet (to check if the reader start working), but
 would like to know if theres is something I can do to detect and use
 the reader (without rebooting).

 Replug your reader after installing libccid so that the udev rule file
 is executed.
 You may also have to reboot.

Replug didnt work, restart did.
Why should I restart? It wont be possible to be hotplug?
(sorry for the cross-post, but tought it was interesting to all)
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel


Re: [opensc-devel] [Muscle] Ubuntu 12.04 smartcard reader install? AKA: Dear Canonical: could you fix this?

2012-10-16 Thread Ludovic Rousseau
2012/10/16 helpcrypto helpcrypto helpcry...@gmail.com:
 On Thu, Oct 11, 2012 at 3:37 PM, Ludovic Rousseau
 ludovic.rouss...@gmail.com wrote:

 I havent restarted yet (to check if the reader start working), but
 would like to know if theres is something I can do to detect and use
 the reader (without rebooting).

 Replug your reader after installing libccid so that the udev rule file
 is executed.
 You may also have to reboot.

 Replug didnt work, restart did.
 Why should I restart? It wont be possible to be hotplug?
 (sorry for the cross-post, but tought it was interesting to all)

The libccid package installs a udev rule file to change the access
rights of the USB device.
This rule file is examied at device plug so you need to replug the
reader _after_ the file is installed.
This rule file is examined by udev so you (may) have to restart
udev, or simply reboot.

Bye

-- 
 Dr. Ludovic Rousseau
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel


Re: [opensc-devel] [Muscle] Ubuntu 12.04 smartcard reader install? AKA: Dear Canonical: could you fix this?

2012-10-16 Thread helpcrypto helpcrypto
 The libccid package installs a udev rule file to change the access
 rights of the USB device.
 This rule file is examied at device plug so you need to replug the
 reader _after_ the file is installed.
 This rule file is examined by udev so you (may) have to restart
 udev, or simply reboot.

googling a bit, i found sudo reload udev
I'll try that next time.

Thanks a lot for your help, Ludovic!
___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel


[opensc-devel] Support for C_InitializeToken and C_InitPIN

2012-10-16 Thread Andreas Schwier (ML)
Dear all,

we've created a pull request towards OpenSC/staging in order to
implement support for PKCS#11 like token initialization and PIN
management [1].

This patch shall allow a token to perform a one-step initialization
rather than deleting the individual PKCS#15 objects from the card. The
patch is in particular useful for cards using the PKCS#15 emulation
layer. The patch also adds the ability to pass hardware and firmware
information from the PKCS#15 level into the PKCS#11 level.

C_InitializeToken and C_InitPIN are used by some PKCS#11 aware
application (like XCA) to perform a complete re-initialization of the
token, removing all keys and resetting the SO and user PIN.

Please review and comment on github.

Kind regards,

Andreas

[1] https://github.com/OpenSC/OpenSC/pull/96

-- 

-CardContact Software  System Consulting
   |.## ##.|   Andreas Schwier
   |#   #|   Schülerweg 38
   |#   #|   32429 Minden, Germany
   |'## ##'|   Phone +49 571 56149
-http://www.cardcontact.de
 http://www.tscons.de
 http://www.openscdp.org

___
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel