I have been using Request.ClientCertificate("SubjectCN") to obtain the names of users for authentication and this worked fine under Windows 2000 IIS 5.0. However I have just upgraded my server to 2003 with IIS 6.0 and I can no longer access the value;
it appears as an empty string
From the looks of it, you will need to use Request.ServerVariables("CERT_SUBJECT") to get the subject of the client certificate now. Here is a great reference for all of the IIS6 server variables:
http://msdn.microsoft.com/en-us/library/ms524602(v=vs.90).aspx.
omatos
3 Posts
accessing Client Certificates in iis6.0
May 25, 2012 09:56 PM|LINK
I have been using Request.ClientCertificate("SubjectCN") to obtain the names of users for authentication and this worked fine under Windows 2000 IIS 5.0. However I have just upgraded my server to 2003 with IIS 6.0 and I can no longer access the value; it appears as an empty string
terridonahue
473 Posts
Re: accessing Client Certificates in iis6.0
May 26, 2012 01:35 AM|LINK
From the looks of it, you will need to use Request.ServerVariables("CERT_SUBJECT") to get the subject of the client certificate now. Here is a great reference for all of the IIS6 server variables: http://msdn.microsoft.com/en-us/library/ms524602(v=vs.90).aspx.
Please 'Mark as Answer' if this post helps you.
OrcsWeb: Managed Windows Hosting Solutions
"Remarkable Service. Remarkable Support."
omatos
3 Posts
Re: accessing Client Certificates in iis6.0
May 28, 2012 06:33 PM|LINK
change the property to Request.ServerVariables ("CERT_SUBJECT") but does not work, any idea because it validates
Lloydz
2335 Posts
Microsoft
Re: accessing Client Certificates in iis6.0
Jun 01, 2012 07:35 AM|LINK
According to the following MSDN article, Request.ClientCertificate should also work in IIS6:
Request.ClientCertificate Collection
http://msdn.microsoft.com/en-us/library/ms524668(v=vs.90).aspx
I would suggest you check if certificate is correctly sent.
Thanks.
omatos
3 Posts
Re: accessing Client Certificates in iis6.0
Jun 01, 2012 01:58 PM|LINK
this also works!
thans