Ahoj, dekuji za skvely sw a prepinam do AJ, aby se to dalo lepe dohledavat a aby poradilo vice lidi. :)
Hello,
(base) marik@marik-thinkpad-x260:~/jsignpdf-1.6.4$ java -jar JSignPdf.jar --version
DEBUG Relaxing SSL security.
DEBUG Registering SunPKCS11 provider from configuration in conf/pkcs11.cfg
Unable to register SunPKCS11 security provider.
java.lang.NoSuchMethodException: sun.security.pkcs11.SunPKCS11.<init>(java.lang.String)
at java.base/java.lang.Class.getConstructor0(Class.java:3349)
at java.base/java.lang.Class.getConstructor(Class.java:2151)
at net.sf.jsignpdf.utils.PKCS11Utils.registerProvider(PKCS11Utils.java:66)
at net.sf.jsignpdf.Signer.main(Signer.java:109)
JSignPdf version 1.6.4
It seems that pkcs11 is not configured correctly.
I have
library=/usr/lib/pkcs11/libIDPrimePKCS11.so
in the conf file. The name of the library is from the output of the command dpkg -L safenetauthenticationclient where safenetauthenticationclient is the deb package from the provider of the token. So I hope it is correct. Another candidate, library=/usr/lib/pkcs11/libeTPkcs11.so , produces the same output.
Any idea?
Thank you.
Robert