We want to build a module in our application which allows the user to sign pdf/word documents by using a smartcard or usb token. Our application is written in Java so a solution with java would be nice but if it is easier with another language I wont mind using it as long as it works on windows.
Are there any libraries that allow me to read and write certificates from a smart card. I want to avoid going low level and sending all these bytestreams to the card. But if this is the only way of doing this I would appreciate it if somone could give me a link to a good tutorial/example.
Also I have seen in some tutorials, that people are importing certificates from smartcards into their local keystore. Why are they doing that? Can't I use the certificate from the card directly?
Thanks in advance for your help.