问题
I have been working with itextSharp-5.5.5, (5.5.10 / 5.5.13) Having issue with all version.
TypeInfo typeInfo = typeof(PdfPKCS7).GetTypeInfo();
FieldInfo rsaDataField = typeInfo.GetDeclaredField("RSAdata");
Object rsadatafieldcontent = rsaDataField.GetValue(pkcs7);
if (rsadatafieldcontent != null && ((byte[])rsadatafieldcontent).Length == 0)
{
_log.Info("Found zero-length encapsulated content: ignoring");
rsaDataField.SetValue(pkcs7, null);
}
if (pkcs7.Verifyc()) <------ **HERE return false**
{
But Adobe Acrobat Reader say: Signed and all signatures are valid.
Any help much appreciated.
来源:https://stackoverflow.com/questions/51078455/pdfpkcs7-verify-return-false-while-signature-verification