intoolswetrust / jsignpdf

PDF signing software written in Java. It supports visible signatures, timestamping, certificate verification and many other cool features
https://intoolswetrust.github.io/jsignpdf/
Other
315 stars 121 forks source link

Documentation: slotIndex shall read slotListIndex #65

Closed vlcinsky closed 2 years ago

vlcinsky commented 2 years ago

Problem

The docs http://jsignpdf.sourceforge.net/uploads/JSignPdf.pdf in section Using hardware tokens for signing is proposing content of pkcs11.cfg file as follows:

name=Test
library=/path/to/your/PKCSDriver.so

optionally adding a line

slotIndex=1

JDK 8 PKCS#11 Reference Guide as referenced from the JSignPdf docs does not contain string slotIndex.

Proposed change

It seems the proper name shall be:

slotListIndex=1

or only the shorter version:

slot=1
kwart commented 2 years ago

Thanks for the report. Could you also send a pull request with the suggested fix?

The source for PDF is this AsciiDoc file: https://github.com/intoolswetrust/jsignpdf/blob/master/distribution/doc/JSignPdf.adoc