[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [iaik-ssl] [iaik-jce] PKCS11 Wrapper Question



hi,

it seems that you do not have the pkcs11wrapper.dll (or libpkcs11wrapper.so
under unix) in you search path.
you can provide such a path directly to the Java VM like:

java -Djava.library.path=../../native/platforms/win32/Release;. -cp
../classes;../../java/classes;../../java/resources;../lib/iaik_jce_full.jar
demo.pkcs.pkcs11.GetInfo cryptoki.dll

where ../../native/platforms/win32/Release is the path where the
pkcs11wrapper.dll (or libpkcs11wrapper.so under unix) for your system is.
the example shown is out of the GetInfo.bat file in the demo/test directory.
you can also place the pkcs11wrapper.dll somewhere in your system's library
search path.
i would recommed to start with the demos of the demo.pkcs.pkcs11 package.
there are many of them and i guess they are easier to read and use,
especially for developers not familiar with PKCS#11. moreover, the
SimpleTest example needs a clean-up.

regards

  Karl

--

Karl Scheibelhofer, <mailto:Karl.Scheibelhofer@iaik.at>
Institute for Applied Information Processing and Communications (IAIK)
at Graz University of Technology, Austria, http://www.iaik.at and
http://jcewww.iaik.at
Phone: (+43) (316) 873-5540


-----Original Message-----
From: iaik-jce-owner@iaik.tu-graz.ac.at
[mailto:iaik-jce-owner@iaik.tu-graz.ac.at]On Behalf Of Nick .....
Sent: Wednesday, January 02, 2002 5:55 PM
To: iaik-ssl@iaik.at
Cc: iaik-jce@iaik.at
Subject: [iaik-jce] PKCS11 Wrapper Question


Hi,

I am using IAIK toolkit java wrapper for accessing Chrysalis-ITS Luna 3
Token. I am using the file SimpleTest.java in folder wrapper under pkcs11
when i unzipped the toolkit for PKCS11. But i get an error when in the
constructor of SimpleTest class, it tries to connect to library using line

    myPKCS11Module_ = PKCS11Connector.connectToPKCS11Module(pkcs11Module);

The exception thrown is

java.lang.UnsatisfiedLinkError: no pkcs11wrapper in java.library.path

 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)

 at java.lang.Runtime.loadLibrary0(Runtime.java:749)

 at java.lang.System.loadLibrary(System.java:820)

 at
iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.ensureLinkedAndInitialized(PKC
S11Implementation.java:85)

 at
iaik.pkcs.pkcs11.wrapper.PKCS11Implementation.<init>(PKCS11Implementation.ja
va:117)

 at
iaik.pkcs.pkcs11.wrapper.PKCS11Connector.connectToPKCS11Module(PKCS11Connect
or.java:53)

 at SimpleTest.<init>(SimpleTest.java:83)

 at SimpleTest.main(SimpleTest.java:102)

What can be the reason? Please help.

Regards
Nick
Senior Developer.


--
Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-ssl/sslthreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content: UNSUBSCRIBE iaik-ssl