Can a pdf file be signed using a usb token on Linux-based distributions?

305 views
Skip to first unread message

Alex Chamba

unread,
Nov 24, 2020, 9:19:42 PM11/24/20
to JSignPdf
I tried the latest version of JsignPdf in Windows and when signing pdf files using usb token devices there is no problem. I would like to know if in Linux based distributions there is also how to sign pdf files using a usb token.

Thanks in advance for the help.

Josef Cacek

unread,
Nov 25, 2020, 2:38:10 AM11/25/20
to JSignPdf forum
Sure, it's possible. I'm using Linux primarily. You just need to use
the proper driver & config file for PKCS#11.

E.g. For my yubikey I use the following content of pkcs11.cfg:

name=OpenSC
library=/usr/lib/x86_64-linux-gnu/opensc-pkcs11.so
slotListIndex=1

Use the following java argument to enable PKCS#11 debug output
"-Djava.security.debug=sunpkcs11". You will get a better insight into
what's happening (or failing).

-- Josef

st 25. 11. 2020 v 3:19 odesílatel Alex Chamba <alex...@gmail.com> napsal:
>
> I tried the latest version of JsignPdf in Windows and when signing pdf files using usb token devices there is no problem. I would like to know if in Linux based distributions there is also how to sign pdf files using a usb token.
>
> Thanks in advance for the help.
>
> --
> You received this message because you are subscribed to the Google Groups "JSignPdf" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jsignpdf+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jsignpdf/05919bf4-c0f1-41d0-94d5-b441098b6afdn%40googlegroups.com.

Theofilos Intzoglou

unread,
Nov 25, 2020, 3:03:45 AM11/25/20
to JSignPdf
Just make sure to use java version 8 as jsignpdf will not be able to use PKCS11
Reply all
Reply to author
Forward
0 new messages