With java:
java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
JSignPdf version: 1.5.3
root@pc-ti:/home/murilo/Documentos/pc-murilo/instaladores-linux/jsignpdf-1.5.3# java -jar JSignPdf.jar -lk -kst PKCS11 -ksp PASSWORD
DEBUG Relaxing SSL security.
DEBUG Registering SunPKCS11 provider from configuration in conf/pkcs11.cfg
DEBUG SunPKCS11 provider registered with name SunPKCS11-JSignPdf
INFO Getting keystore type instance: PKCS11
java.io.IOException: load failed
at sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:782)
at java.security.KeyStore.load(KeyStore.java:1214)
at net.sf.jsignpdf.utils.KeyStoreUtils.loadKeyStore(KeyStoreUtils.java:352)
at net.sf.jsignpdf.utils.KeyStoreUtils.getKeyAliases(KeyStoreUtils.java:106)
at net.sf.jsignpdf.Signer.main(Signer.java:128)
Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: 0x81000001
at sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue(Native Method)
at sun.security.pkcs11.P11KeyStore.mapLabels(P11KeyStore.java:2306)
at sun.security.pkcs11.P11KeyStore.engineLoad(P11KeyStore.java:766)
... 4 more
Exception in thread "main" java.lang.NullPointerException: Keystore was not loaded succesfully. Check if the keystore type, path and password are valid.
at net.sf.jsignpdf.utils.KeyStoreUtils.getKeyAliases(KeyStoreUtils.java:108)
at net.sf.jsignpdf.Signer.main(Signer.java:128)