How to get System.Security.Cryptography.X509Certificates.X509Certificate2 from PdfFileSignature in .Net Aspose

How to get System.Security.Cryptography.X509Certificates.X509Certificate2 from PdfFileSignature in .Net Aspose

@sreenath.techie

You can use PdfFileSignature.ExtractCertificate method to extract signature’s single X.509 certificate as a stream.

For more detail, please read following article.
Extract Signature Information

@tahir.manzoor
I quite didn’t get exact way of getting System.Security.Cryptography.X509Certificates.X509Certificate2 from reference you gave. Our main requirement is to extract X509Certificate2 and get details like Subject, Issuer, SubjectName.RawData, IssuerName.RawData) out of it. If you can provide sample code for this, it would be helpful.

@sreenath.techie

Unfortunately, the PdfFileSignature class does not contain members to return X509Certificate2. However, we have logged a ticket as PDFNET-51082 in our issue tracking system to get X509Certificate2 from PdfFileSignature. We will inform you via this forum thread once there is an update available on it. We apologize for your inconvenience.

@tahir.manzoor
May I know tentative date of this issue resolution?

@sreenath.techie

Currently, your issue is pending for analysis and is in the queue. Once we complete the analysis of your issue, we will then be able to provide you an estimate.