Hello,
I’m using itextsharp to generate and sign a PDF document in my Desktop Application.
We use a digital certificate from a USB token for signing.
Now I’d like to implement this feature with Wisej. I don’t know how to use the USB token at the client side for signing.
Could you give me some advise ?
Regards,
Hi Tung,
I’m glad to see that you are on the right track. You got the general idea. Now you choose the best solution considering your specific scenario.
Another approach is to use the Azure Queue for communication between Wisej and the Desktop application. I think should be better than to monitor a local folder.
Hi Tung,
This is a bit like accessing scanners on USB port. Web applications just can’t access your USB ports nor can run desktop applications.
The only way I know of solving this problem is to build a glue desktop application: it executes the desktop function you want and uses web services to communicate with server (meaning your Wisej application).
For a sign PDF functionality I would build something like this
Of course you can design something completely different, where the web services are located on the desktop (client) side and are consumed by the application (server) side.
Hi Tung,
to me it seems that you cannot (or should not) try to access your USB token / certificate from server side code.
You can find a discussion around that topic here:
https://stackoverflow.com/questions/39738912/how-to-sign-pdf-using-usb-token-in-web-application
and a few more pointers here:
https://stackoverflow.com/questions/29210451/itext-generating-pdf-hash-without-certificate-chain
Hope that helps.
Best regards
Frank
Please login first to submit.