Does JSignPdf support Safenet token?

585 views
Skip to first unread message

Khalil AlMaawali

unread,
May 31, 2018, 5:06:41 AM5/31/18
to JSignPdf
I'm using Safnet 5105 digital for signature, does JSignPdf supports token?

Josef Cacek

unread,
May 31, 2018, 2:04:59 PM5/31/18
to JSignPdf forum
Hi Khalil,

the Safenet tokens should be supported through PKCS#11 configuration.
You need to have drivers installed and edit JSignPdf configuration
files to fit your system configuration:

conf/conf.properties (just uncomment line: #pkcs11config.path=conf/pkcs11.cfg)
conf/pkcs11.cfg

Regards,

-- Josef

On Thu, May 31, 2018 at 11:06 AM, Khalil AlMaawali <unam...@gmail.com> wrote:
> I'm using Safnet 5105 digital for signature, does JSignPdf supports token?
>
> --
> 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 post to this group, send email to jsig...@googlegroups.com.
> Visit this group at https://groups.google.com/group/jsignpdf.
> For more options, visit https://groups.google.com/d/optout.

Khalil AlMaawali

unread,
Jun 5, 2018, 5:13:52 AM6/5/18
to jsig...@googlegroups.com
Hi Josef,

I have installed Safenet token drivers and test the token with LiberOffice, Thunderbird, Firefox and it is
working, however after I uncomment PKCS#11 configuration still JSignpdf can't read private key from token directly.
Note I'm using token under Ubuntu14.04 and JSignpdf version 1.6.3.

Regards
Khalil

On Thu, May 31, 2018 at 10:04 PM, Josef Cacek <josef...@gmail.com> wrote:
Hi Khalil,

the Safenet tokens should be supported through PKCS#11 configuration.
You need to have drivers installed and edit JSignPdf configuration
files to fit your system configuration:

conf/conf.properties (just uncomment line: #pkcs11config.path=conf/pkcs11.cfg)
conf/pkcs11.cfg

Regards,

-- Josef

On Thu, May 31, 2018 at 11:06 AM, Khalil AlMaawali <unam...@gmail.com> wrote:
> I'm using Safnet 5105 digital for signature, does JSignPdf supports token?
>
> --
> 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

> To post to this group, send email to jsig...@googlegroups.com.
> Visit this group at https://groups.google.com/group/jsignpdf.
> For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

To post to this group, send email to jsig...@googlegroups.com.
Visit this group at https://groups.google.com/group/jsignpdf.
For more options, visit https://groups.google.com/d/optout.



--
Regards

Khalil Al-Maawali
Be Free, Be GNU/Linux

Martin Drápal

unread,
Jul 18, 2018, 7:44:52 AM7/18/18
to JSignPdf
Hi, I have the same problem with JsignPDF 1.6.3 and token Safenet 5110. All aplication in Linux communicated with token, but JsignPDF not. Here are my conf filex. Is ther something wrong?


pkcs11.cfg
conf.properties

Josef Cacek

unread,
Jul 18, 2018, 4:54:58 PM7/18/18
to JSignPdf forum
Hi Martin,

does the token work for you in another Java application?
Can you share output of `java -version`?

You can debug the PKCS11 by using following Java arguments:
-Djava.security.debug=pkcs11keystore
-Djava.security.debug=sunpkcs11

You could also try to use opensc PKCS11 libs:
sudo apt install opensc opensc-pkcs11

I use it with my yubikey. You can find my sample configuration here:
https://pastebin.com/gYZ3zafL

Regards,
-- Josef
> --
> 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.

Fahad Al-Saidi

unread,
Jul 18, 2018, 11:48:17 PM7/18/18
to jsig...@googlegroups.com
Dear Martin,

I have changed
slotListIndex=1
to
slot=1

Then it works  till I faced the another problem
https://github.com/kwart/jsignpdf/issues/23

Regards,
Fahad 


2018-07-18 15:44 GMT+04:00 Martin Drápal <dr.a...@gmail.com>:
Hi, I have the same problem with JsignPDF 1.6.3 and token Safenet 5110. All aplication in Linux communicated with token, but JsignPDF not. Here are my conf filex. Is ther something wrong?


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to jsig...@googlegroups.com.
Visit this group at https://groups.google.com/group/jsignpdf.
For more options, visit https://groups.google.com/d/optout.

Martin Drápal

unread,
Jan 17, 2019, 3:56:17 AM1/17/19
to JSignPdf
Dear Fahad,

solutions of my problem was in location where I start scrip java -jar JSignpdf.jar.
If i start scrip for example in location /home/USER/Desktop/ as java -jar /opt/sign/JSignPdf.jar it doesn`t work, but if i`m in part /opt/sign and den a use java -jar JSignPdf.jar it work`s fine.

Thak`s a lot.

Dr.

Dne čtvrtek 19. července 2018 5:48:17 UTC+2 Fahad Al-Saidi napsal(a):
Dear Martin,

I have changed
slotListIndex=1
to
slot=1

Then it works  till I faced the another problem
https://github.com/kwart/jsignpdf/issues/23

Regards,
Fahad 

2018-07-18 15:44 GMT+04:00 Martin Drápal <dr.a...@gmail.com>:
Hi, I have the same problem with JsignPDF 1.6.3 and token Safenet 5110. All aplication in Linux communicated with token, but JsignPDF not. Here are my conf filex. Is ther something wrong?


--
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 post to this group, send email to jsig...@googlegroups.com.
Visit this group at https://groups.google.com/group/jsignpdf.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages