Re: How to get client certificate from IIS?
From: Karel Miklav (karel_at_inetis.spppambait.com)
Date: 01/17/05
- Next message: Kristofer Gafvert: "Re: local browsing"
- Previous message: Wade A. Hilmo [MS]: "Re: Bug IIS 6 Anonymous Access"
- In reply to: Egbert Nierop \(MVP for IIS\): "Re: How to get client certificate from IIS?"
- Next in thread: Egbert Nierop \(MVP for IIS\): "Re: How to get client certificate from IIS?"
- Reply: Egbert Nierop \(MVP for IIS\): "Re: How to get client certificate from IIS?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 17 Jan 2005 07:47:32 +0100
Egbert Nierop (MVP for IIS) wrote:
> Did you set IIS as shown in picture?
> If you don't it won't give you certificates.
Yes, thanks Egbert, I get the certificate. It's just that in
ASP/VBScript I can't decode it properly from binary form and in
ASP/JScript I don't know what to do with the received object at all. I
have no problems in .NET/C#, but I'd prefer to have one simple file for
that as the rest of the application is CGI. Or be able to load the
certificate from CGI, if that's possible.
Here's a snip of my working C# piece:
private void Page_Load(object sender, System.EventArgs e)
{
byte[] content = Request.ClientCertificate.Certificate;
string certificate =
"-----BEGIN CERTIFICATE-----<br/>" +
wrap(System.Convert.ToBase64String(content), 64) + "<br/>" +
"-----END CERTIFICATE-----<br/>";
Response.Write(certificate);
}
-- Regards, Karel Miklav
- Next message: Kristofer Gafvert: "Re: local browsing"
- Previous message: Wade A. Hilmo [MS]: "Re: Bug IIS 6 Anonymous Access"
- In reply to: Egbert Nierop \(MVP for IIS\): "Re: How to get client certificate from IIS?"
- Next in thread: Egbert Nierop \(MVP for IIS\): "Re: How to get client certificate from IIS?"
- Reply: Egbert Nierop \(MVP for IIS\): "Re: How to get client certificate from IIS?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|