Hi,
Please post more of the stack trace. It is unclear what throws the
exception. And the code in the gist does not create a signer thus
something is missing. Did you use the code from the source code download
in the current version?
see also
https://stackoverflow.com/questions/23665092/how-to-get-keystore-from-usb-token-in-java
Tilman
Am 20.06.2020 um 05:44 schrieb Gustavo Delgado:
Hello everyone! I hope you're all doing well.
I'm struggling to digitally sign a pdf document for more time then I would like
and any help here is appreciated.
I'm using a USB Token (StarSign Crypto USB Token S) and the proprietary .dll
available to load the keystore.
I can get the available info from the token, but whenever I try to sign a pdf using
the <CreateSignature> class, I get the following exception:
<<org.bouncycastle.operator.OperatorCreationException: cannot create signer: No
installed provider supports this key: sun.security.pkcs11.P11Key$P11PrivateKey>>
I've done some research but I couldn't find any resource to overcome this
problem using PDF Box, which is the library I'd like to use because of its
license.
If can be of any help, I'm also posting the code I've used:
https://gist.github.com/benywolf42/f5784671301478dd3e2cf803eb6ef8d5
Thanks in advance and be safe!
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org