Jump to content

Recommended Posts

Posted

I have an X509Certificate2-instance fMainCertificate that contains a certificate I imported from a file. I verify this certificate by building an X509Chain-instance, including all the certificates in the certification path of the main certificate (fExtraCertificates), like this:X509Chain lChain = new X509Chain(); lChain.ChainPolicy.RevocationFlag = X509RevocationFlag.ExcludeRoot; lChain.ChainPolicy.RevocationMode = X509RevocationMode.Online; lChain.ChainPolicy.VerificationFlags = X509VerificationFlags.AllFlags; foreach(X509Certificate2 lCertificate in fExtraCertificates) lChain.ChainPolicy.ExtraStore.Add(lCertificate); bool lSuccess = lChain.Build(fMainCertificate);This validates the main certificate and returns true. But when I display the certificate, like this:X509Certificate2UI.DisplayCertificate(fMainCertificate);the certificate dialog says that "Windows does not have enough information to verify this certificate.". The tab page "Certification Path" tells me "The issuer of this certificate could not be found.". How can I link the certificates in fExtraCertificates to the main certificate so they are used in the dialog?

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...