On 6/23/2012 7:51 AM, alexis _ wrote:
From: [email protected]
I seem to recall there was/is an engine to use an device with a
PKCS#11 ("p11") driver dll, on any OS. If this is so, you may
be able to use many kinds of existing devices, including Gemalto
or Oberthur smartcards (if those are safe enough).
However my latest attempts to use this died due to bugs in
M.U.S.C.L.E. opensc which made it not work with M.U.S.C.L.E.
cards, but bugs may have been fixed since then.
--
Jakob Bohm, CIO, partner, WiseMo A/S. http://www.wisemo.com
Thanks Jakob. Digging into my old notes, it seems the driver you are refeing
might just be what i managed to get to work with
C:\>openssl
OpenSSL> engine -t dynamic -pre SO_PATH:engine_pkcs11 -pre ID:pkcs11 -pre LIST_A
DD:1 -pre LOAD -pre MODULE_PATH:cps_pkcs11_w32.dll
(dynamic) Dynamic engine loading support
[Success]: SO_PATH:engine_pkcs11
[Success]: ID:pkcs11
[Success]: LIST_ADD:1
[Success]: LOAD
[Success]: MODULE_PATH:cps_pkcs11_w32.dll
Loaded: (pkcs11) pkcs11 engine
[ available ]
And then instead of using -key mykeyfile.pem as a parameter to openssl tools
it would be instead
-engine pkcs11 -inkey 01000000 -keyform engine
However, back then
1) i think i remember windows dll was proprietary and very specific to the
smartcards i was using.
On any OS, the PKCS11 library for a smart card is essentially a device
driver. Some are open source, some are proprietary.
The M.U.S.C.L.E. project was for a long time the home for development of
open source drivers for smart cards, smart card readers and on-card
firmware. The L. in the acronym stands for Linux.
2) i found out this trick by accident, months after putting in production a
solution based on java. so the -engine was just a proof of concept for me
3) i would rather have windows off topic here, see below
is all this what you are refering to ?
Just the first part.
From: [email protected]
The only providers of
crypto smart cards I know are for OpenPGP, they are european and I use
their smart card, I am happy with. Although it seems that the smartcard
doesn't support directly OpenSSL, I think they might give you valuable
information. http://www.g10code.de/
This is misinformation.
Yes, some members of the GPG team made their own smart card command set,
built in support in GPG itself and started selling pre-programmed
"OpenPGP" cards, with their closed application specific design.
Most other crypto smart cards fall into 2 categories:
A) Programmable "multiapplication" smart cards, usually programmed using
the old JavaCard 2.x API with the VISA GlobalPlatform firmware
installation interface. These can be programmed to do anything, but it
is not an easy API to work with. Fortunately, there are some pre-made
cardlets available, including at least one PKCS11 applet ("musclecard").
B) Preprogrammed PKCS11/PKCS15 cards with bundled PKCS11 drivers for
various systems. Some are based on multiapplication cards, some are
not. A former major player in this market was eAladdin from Israel
(product name eToken), who used a patent to try to corner the market for
directly USB pluggable cards and was bought out by US competitor
"SafeNet" (with product names such as Rainbow).
In both categories, two big players are GEMAlto (a merger of 3 or more
old players) and Oberthur Card Services (an originally French company
who mostly focus on government contracts, their sister company also
provides outsourced printing of actual paper money for countries that
don't have their own high end printing facilities).
For all smart card products, you can do worse than choosing hardware on
the US NIST list of FIPS 140-2 or -3 certified products, pay attention
to exact model names and certification levels.
Enjoy
Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S. http://www.wisemo.com
Transformervej 29, 2730 Herlev, Denmark. Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]