Skip to content

Slot with tokens: (none) is coming #226

@sangeethn

Description

@sangeethn

I need to develop a Php based web application to digitally sign a pdf using a ProxKey Token. When i am testing the system locally in my machine, the required action is performing and the signed document is being created. But when i deployed the same system in server, I am getting an error like the following
/var/www/html/DigitalSignature
FINE Default property file doesn't exists.
FINE Default property file doesn't exists.
SunPKCS11 loading /var/www/html/DigitalSignature/jsignpdf/conf/pkcs11.cfg
sunpkcs11: Initializing PKCS#11 library /usr/lib/WatchData/ProxKey/lib/libwdpkcs_SignatureP11.so
Information for provider SunPKCS11-JSignPdf
Library info:
cryptokiVersion: 2.10
manufacturerID: WatchData
flags: 0
libraryDescription: PKCS#11 cryptoki module
libraryVersion: 1.00
All slots: 1, 2, 3
Slots with tokens: (none)
INFO Checking input and output PDF paths.
java.security.KeyStoreException: PKCS11 not found
at java.base/java.security.KeyStore.getInstance(KeyStore.java:878)
at net.sf.jsignpdf.utils.KeyStoreUtils.loadKeyStore(KeyStoreUtils.java:355)
at net.sf.jsignpdf.utils.KeyStoreUtils.getPkInfo(KeyStoreUtils.java:411)
at net.sf.jsignpdf.SignerLogic.signFile(SignerLogic.java:154)
at net.sf.jsignpdf.Signer.signFiles(Signer.java:246)
at net.sf.jsignpdf.Signer.main(Signer.java:139)
Caused by: java.security.NoSuchAlgorithmException: PKCS11 KeyStore not available
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.base/java.security.Security.getImpl(Security.java:656)
at java.base/java.security.KeyStore.getInstance(KeyStore.java:875)
... 5 more
WARNING Keystore was not loaded succesfully. Check if the keystore type, path and password are valid.
SEVERE Problem occured
java.lang.NullPointerException: Keystore was not loaded succesfully. Check if the keystore type, path and password are valid.
at net.sf.jsignpdf.utils.KeyStoreUtils.getKeyAliasInternal(KeyStoreUtils.java:224)
at net.sf.jsignpdf.utils.KeyStoreUtils.getPkInfo(KeyStoreUtils.java:413)
at net.sf.jsignpdf.SignerLogic.signFile(SignerLogic.java:154)
at net.sf.jsignpdf.Signer.signFiles(Signer.java:246)
at net.sf.jsignpdf.Signer.main(Signer.java:139)

INFO Finished: Creating of signature failed.

My initial analysis : Since I am using the same system as my client and server when i am testing locally, I am getting the signed document. But I deployed it on server, proxToken i am plugging on client machine.

Is there any solution to solve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions