The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

webpointz (1) [Avatar] Offline
#1
Hello...not expecting answer from authors but maybe others might know the answer to this.

If I open a digitally signed PDF and read the contents of the certificate, under the "details" tab of the signed certificate, I can see things like: RFC822 email, validity starts, validity ends etc.

How do I use iText code to "see" this information? Currently, my code does the following:

newVar = PdfPKCS7.getSubjectFields(pk.getSigningCertificate());
sigNew = newVar.getFields();

but it only returns the [C], [CN], [O] and [OU] fields...??

If I use:
pk2 = pk.getSigningCertificate();
getCertStart = pk2.getNotBefore();
getCertEnd = pk2.getNotAfter();

I can access the dates, BUT how to access the email address in the certificate???

PS: I am coding using iText and ColdFusion.