Access to site certificate

  • Thread starter Thread starter Randy Magnuson
  • Start date Start date
R

Randy Magnuson

Repost from the ie55 group...

I'm working on a project where we need to gather some information about a site's certificate, such as issuer, expiration date, etc. Is there a way, such as in a BHO, that I can intercept a site's certificate when it's browsed to? I think I can handle the security processing, but I don't know how to get my hands on the cert.

Randy
 
Select the File\Properties menu option when you navigate to your selected page. There is a button there for Certificates that will give you the information you want.

Here is a button script for IE6 that will do the same thing
<HTML>
<SCRIPT LANGUAGE="JavaScript">
//Execute the Properties command for Internet Explorer
//www.iecustomizer.com
try {
var olecmd_Properties = 10;
var parentwin = external.menuArguments;
var doc = parentwin.document;
doc.body.insertAdjacentHTML("beforeEnd", "<object id=\"WebBrowser\" width=0 height=0 classid=\"CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\"></object>");
doc.all.WebBrowser.ExecWB(olecmd_Properties,0);
doc.all.WebBrowser.outerHTML="";
}
catch(e)
{
alert(e);
}
</SCRIPT>
</HTML>
 
I thought your request was for a detailed explanation! I hope your research
is legitimate. Maybe you should contact M$ directly. I'm not associated with
M$ and so have no interest in perusing the matter further.
Good Luck!
 
Yes, it's absolutely legitimate. In fact, it's intended to help detect
illegitimate sites, as it's pretty easy to fool an unwitting user with a
bogus certificate.
 
Back
Top