Dear Team,

I changed the filling of "kall" in the code I went through in all  
"StoreName" of all "StoreLocation" thus I think I collected all  
certificate into the "kall".
Then I debuged what happening there and I found that the verified  
certificate's SerialNumer is 7 in pkc[0] but the SerialNumer is 8 in  
kall[50] and the all other properties are the same.

Why the serialnumbers are differents, can anybody help to me?
Why is good for Acrobat Reader ?

Attila.

NEW CODE:
---------
public virtual void Verify(Stream inStream)
{
   List<X509Certificate> kall = new List<X509Certificate>();
   foreach  
(System.Security.Cryptography.X509Certificates.StoreLocation  
storeLocation in  
typeof(System.Security.Cryptography.X509Certificates.StoreLocation).GetEnumValues())
   {
     foreach (System.Security.Cryptography.X509Certificates.StoreName  
storeName in  
typeof(System.Security.Cryptography.X509Certificates.StoreName).GetEnumValues())
     {
       System.Security.Cryptography.X509Certificates.X509Store store =  
new System.Security.Cryptography.X509Certificates.X509Store(storeName,  
storeLocation);
        
store.Open(System.Security.Cryptography.X509Certificates.OpenFlags.ReadOnly);
       try
       {
         X509CertificateParser certParser = new X509CertificateParser();
          
System.Security.Cryptography.X509Certificates.X509Certificate2Collection col =  
store.Certificates;
         foreach  
(System.Security.Cryptography.X509Certificates.X509Certificate2 cer in  
col)
         {
           kall.Add(certParser.ReadCertificate(cer.RawData));
         }
       }
       finally
       {
         store.Close();
       }
     }
   }
   ...
}



------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to