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