OpenSC Win32 binaries
=====================
Should run on W98, ME, WNT, W2K and WXP.
You should have a card reader installed.
What is ported:
- opensc.dll (the core)
- opensc-pkcs11.dll (the pkcs11 lib)
- pkcs11-spy.dll
- most tools and tests
Also added: libeay32.dll (V 0.9.7b) from the OpenSSL project.
See http://www.openssl.org/ for the entire OpenSSL package.
Note: the OpenSSL pkcs11 engine is also ported, but works
only if the OpenSSL code is linked statically.
This is not done here (it's a large increase of size) so
the engine_pkcs11.dll is not included.
Also note: all tools are command-line, so you should run them
from a command prompt (Start -> Run -> then type in "cmd"),
not by double-clicking on them in Windows Explorer.
INSTALLATION
============
There's no installation (yet), and the tools work without it from
this directory. But if you want to be independent of this dir
or want to use the pkcs11 lib in Mozilla, you can do the following:
- copy opensc.conf and the .profile files to your windows home
dir (usually C:\WINNT or C:\WINDOWS)
- copy the DLLs to your execution path
(e.g. C:\WINNT\system32 or C:\WINDOWS\system32)
DOCS
====
The manpages for the tools and APIs haven't been 'ported', but
see opensc.html for more info.
See also the "Quick start guide to initializing a card" section
in the QUICKSTART doc.
TESTS
=====
1) Reader test: in this directory, type
opensc-tool -t
This should display at least 1 card reader (if not, get and install
a card reader)
2) Card test: insert a card and do
opensc-tool -a
This should return the ATR of the card
3) If you don't have a pkcs15-initialized card yet, try
pkcs15-init -E
pkcs15-init -C --so-pin 123456 --so-puk 123456
pkcs15-init -P -a 1 --so-pin 123456 --pin 1234 --puk 1234 -a 1
pkcs15-init -S "..\..\..\win32_rel\test.p12" -f PKCS12 -a 1 -l test --so-pin 123456 --pin 1234 --passphrase password
(password = "password")
If this worked, you should have a card with a PIN (= '1234"),
a private key, a corresponding cert and a root cert on it.
4) Try the card and the pkcs11 lib:
pkcs11-tool -t -l
At the end, after pressing 'x' twice, you should get "no errors".