W
Wilfried
I want to read the Elements of the Subject of a client certificate sent to a
Web Service via HTTPS. This can be done by the following code segment...
[WebMethod]
public string echoCert()
{
string result = String.Empty;
HttpClientCertificate cert = this.Context.Request.ClientCertificate;
if (cert.IsPresent)
{
result = result + "Subject: " + cert.Subject + "\n";
result = result + "SubjectCN: " + cert.Get("SUBJECTCN") + "\n";
result = result + "SubjectOU: " + cert.Get("SUBJECTOU") + "\n";
...
return result;
}
My question: How can I read more than one OU= Element in the certificate?
Web Service via HTTPS. This can be done by the following code segment...
[WebMethod]
public string echoCert()
{
string result = String.Empty;
HttpClientCertificate cert = this.Context.Request.ClientCertificate;
if (cert.IsPresent)
{
result = result + "Subject: " + cert.Subject + "\n";
result = result + "SubjectCN: " + cert.Get("SUBJECTCN") + "\n";
result = result + "SubjectOU: " + cert.Get("SUBJECTOU") + "\n";
...
return result;
}
My question: How can I read more than one OU= Element in the certificate?