java code for pswd protection+digital sign (for all pgs)
posted 6 years ago
hello friend ,
i have written a java code for digitally signing and password protect a pdf document using itext.jar...
now what is happening is i am using export.cer and keystore.ks which i created using a keytool command in command prompt. so when i open the pdf the signature is invalid ...only when i manually click on the signature and verify it then it will get validated...also when i send the pdf to my friends computer the same thing is happening .Could anyone please help me out in solving this issue..
is this because i am using some non trusted certificate and keystore
Also if i have to get a trusted certificate from Versign or so...how actually do they give me the private key similar to keystore.ks
the code is given below . please could anyone help me out !!!