iText signing PDF using external signature with smart card
问题 I've been toying with iTextSharp 5.5.7 for a while and can't find the right way to make a valid digital signature for PDF from Smart Card - Adobe Reader always says its signed by and unknown and can't decode signatures' DER data. I've looked at MakeSignature.cs code for reference and what is does: Stream data = signatureAppearance.GetRangeStream(); // gets the first hash byte[] hash = DigestAlgorithms.Digest(data, hashAlgorithm); // gets the second hash or is it not a hash at all ? byte[] sh