I'm trying to follow the instructions documented on page 96 of the (excellent) book "Digital Signatures in PDF Documents" section 4.1.2 titled "Signing a document using a USB token (part 2: PKCS#11)".
Specifically, Code Sample 4.2 starts with the following line:
public static final String DLL = "c:/windows/system32/dkck201.dll";
This code example is for a Windows machine. If I'm using Linux (CentOS 64 bit) with a USB Token (such as the example's iKey 4000), what file would I use and where does it come from (e.g. the token manufacturer, the PDF Digital Certificate provider, the CentOS operating system, Java, etc...)?
The text states: Make you have the correct path to the CRYPTOKI (PKCS#11) DLL. If you want to make this work on Linux, you’ll need a path to a .so-file such as libCryptoki2_64.so, libpkcs11.so…
I don't know much about this topic. I searched but those two .so
files listed above for Linux do not appear to be on my machine. However, the following files ARE on the machine -- but I'm not sure if one might be a suitable substitute:
/usr/lib64/pkcs11
/usr/lib64/libCrypto.so
/usr/lib64/libeTPkcs11.so
~/jre/lib/amd64/libj2pkcs11.so
~/jre/lib/ext/sunpkcs11.jar
Can someone advise me how to obtain (or locate) an .so
file that could be used with a USB Token on Linux 64b? Or at least describe in general terms what this file is, where is comes from, etc.?
Any help much appreciated!