Using a certificate that I created, I signed a PDF document with the iTextSharp library.
When, in the pdf signature panel, I will see the public signature I have the following information in hexa
But, when I get the public key from the same certificate through my code in c#
var certificate = new X509Certificate2(@"C:\mycert.pfx", "pass");
byte[] publicKey = certificate.PublicKey.EncodedKeyValue.RawData;
The result in decimal (converted to Hexa) is different.
e.g. In the byte array 5 is 130 - 82 in Hexa, but in pdf, the 6th key is 0D in hexa
What I'm doing wrong?
Thanks and Sorry for my english.