This can be achieved using the X509Certificate2UI class.
To make this class available to you, you need to add a link to System.Security.dll
In the X509Certificate2UI class, you have a meyhod called DisplayCertificate() that takes an X509Certificate2 object as a parameter. When called, this method displays a dialog box that displays all the certificate information, including the chain, just like the dialog box you find in IE.
The webbrowser control can only return an X509Certificate , which can then be passed to the constructor of the X509Certificate2 class.
So, the code is as follows:
source share