I am having a cac card that I am accessing through java code. I am extracting an x509
certificate and now I need to use this cert (or anything else that I can extract from the cac card) to sign a pdf
document.
Currently, I am using the name and alis from the x509
and creating my own pfx
which I am using with itext to sign BUT that's not the right approach. I need to use some form of the cert DIRECTLY to sign the pdf
.
My questions are:
- Is it possible?
- If yes, how?
- If no, what are the alternatives?
- Does a smart card contain a pfx?
Help!