chiosco

chiosco

  • NA
  • 1
  • 0

How to find field in the string HttpclientCertificate class

Feb 26 2004 6:00 AM
I am new from the forum. Thanks for all for help and for read my msg. Sorry for my english it is not good. I have a problem with use HttpClientCertificate Class in # DOT.NET. From my brws to my server I have a SSL3 connection with Client Certificate with smart card. All work well and my index.aspx page display the filed form Client Certificate with source code that I send to you attach from my msg. The problems it is this: I want to read and display the value of the single field from the string like Subject or ServerSubject as like e-mail subject and serversubject or OU from Issuer and so on. I am not be able to use in correct way the HttpClientCertificate methods in C# and I do not be able to find same sample to explaint to me how to do. I hope that you have same litle help from Italy. Thanks in any case for all. At the next. Ciao Franco. this it is the page from my index.aspx: test per SSL3 - read client certificate Client certificate retrieved ClientCertificate Settings: Certificate = System.Byte[] Cookie = 1703b55e8a2e91e197963494baa7f16b Flags = 1 IsPresent = True Issuer = C=IT, O=InfoCamere SCpA, OU=Ente Certificatore del Sistema Camerale, CN=InfoCamere Servizi di Certificazione SV IsValid = True KeySize = 128 SecretKeySize = 512 SerialNumber = 04-2e ServerIssuer = C=IT, O=InfoCamere SCpA, OU=Ente Certificatore del Sistema Camerale, CN=InfoCamere Servizi di Certificazione TEST ServerSubject = C=IT, O=InfoCamere SCpA, OU=Area Portali Piattafome Applicative, CN=weipda064-134.icnet, [email protected], L=Padova, S=Padova PublicKey = System.Byte[] Subject = C=IT, O=INFOCAMERE FIRMA DIGITALE, OU="RA=INFOCAMERE FIRMA DIGITALE", CN=POZZER/FRANCO/2004111114A12, [email protected], dnQualifier=2004111114A12, OID.2.5.4.5=PZZFNC56L02E682I, SN=POZZER, G=FRANCO ValidFrom = 26/01/2004 16.12.42 ValidUntil = 26/01/2006 16.12.42 What's this = System.Web.HttpClientCertificate cs.GetKey(0) = ISSUER ==> cs.GetKey(1) = SUBJECTEMAIL ==> cs.GetKey(2) = BINARYISSUER ==> cs.GetKey(3) = FLAGS ==> cs.GetKey(4) = ISSUERO ==> cs.GetKey(5) = PUBLICKEY ==> cs.GetKey(6) = ISSUEROU ==> cs.GetKey(7) = ENCODING ==> cs.GetKey(8) = ISSUERCN ==> cs.GetKey(9) = SERIALNUMBER ==> cs.GetKey(10) = SUBJECT ==> cs.GetKey(11) = SUBJECTCN ==> cs.GetKey(12) = CERTIFICATE ==> cs.GetKey(13) = SUBJECTO ==> cs.GetKey(14) = SUBJECTOU ==> cs.GetKey(15) = VALIDUNTIL ==> cs.GetKey(16) = VALIDFROM ==> and this it it my index.aspx code: Page Language="c#" AspCompat="true" Debug="true" %> <%@ import Namespace="System" %> <%@ import Namespace="System.Web" %> <%@ import Namespace="System.Net" %> <%@ import Namespace="System.IO" %> <%@ import Namespace="System.Text" %> <%@ import Namespace="System.Xml" %> <%@ import Namespace="System.Runtime.Serialization" %> <%@ import Namespace="System.Runtime.Serialization.Formatters.Binary" %> Regione - Telemaco replay to me if you wanat from [email protected] or [email protected] www.infocamere.it www.infoimprese.it