You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jsig...@googlegroups.com
Hi Josef,
I set up JSignPdf to use smartcard with library=c:/windows/system32/beidpkcs11.dll, however I get this error when I try to sign using PKCS11:
DEBUG Relaxing SSL security. INFO Starting JSignPdf INFO Checking input and output PDF paths. java.security.KeyStoreException: PKCS11 not found at java.security.KeyStore.getInstance(Unknown Source) at net.sf.jsignpdf.utils.KeyStoreUtils.loadKeyStore(KeyStoreUtils.java:359) at net.sf.jsignpdf.utils.KeyStoreUtils.getPkInfo(KeyStoreUtils.java:424) at net.sf.jsignpdf.SignerLogic.signFile(SignerLogic.java:130) at net.sf.jsignpdf.SignerLogic.run(SignerLogic.java:109) at java.lang.Thread.run(Unknown Source) Caused by: java.security.NoSuchAlgorithmException: PKCS11 KeyStore not available at sun.security.jca.GetInstance.getInstance(Unknown Source) at java.security.Security.getImpl(Unknown Source) ... 6 more WARN Keystore was not loaded succesfully. Check if the keystore type, path and password are valid. ERROR Problem occured java.lang.NullPointerException: Keystore was not loaded succesfully. Check if the keystore type, path and password are valid. at net.sf.jsignpdf.utils.KeyStoreUtils.getKeyAliasInternal(KeyStoreUtils.java:216) at net.sf.jsignpdf.utils.KeyStoreUtils.getPkInfo(KeyStoreUtils.java:426) at net.sf.jsignpdf.SignerLogic.signFile(SignerLogic.java:130) at net.sf.jsignpdf.SignerLogic.run(SignerLogic.java:109) at java.lang.Thread.run(Unknown Source) INFO Finished: Creating of signature failed.
If I execute "JSignPdfC.exe -kst PKCS11 -lk" I get this output,
DEBUG Relaxing SSL security. INFO Getting keystore type instance: PKCS11 INFO Getting key alias INFO Key aliases in the keystore: Authentication Signature
WINDOWS-MY keystore works correctly.
Could you please help me with this?
-- Marek
Josef Cacek
unread,
Feb 13, 2014, 4:39:22 AM2/13/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JSignPdf forum
Hi Marek,
did you uncomment following line in conf/conf.properties?
#pkcs11config.path=conf/pkcs11.cfg
The property description says:
# pkcs11config.path is a path (either absolute or relative to the
working directory) to PKCS#11 provider configuration;
# if the file exists it's used to register a new SunPKCS11 provider instance
# as described in
http://download.oracle.com/javase/6/docs/technotes/guides/security/p11guide.html