Ver Mensaje Individual
  #4 (permalink)  
Antiguo 03/05/2005, 07:34
Dar Kanon
 
Fecha de Ingreso: mayo-2005
Mensajes: 14
Antigüedad: 19 años
Puntos: 0
hola

yo estoy haciendo algo parecido a esto, de los certificados, hasta ahorita ya logre ingresar al certificado pero al parecer no puedo obtener la cadena que busco

Hjt1sRHtU6Mu2mXAuJmLE02xRF13/BDY+AdRquvNu6aac4A55DYCziaiwppsjK5Pdmch7np1Nf4HsOg 1/3zLGkq6AUykv+TyG/CuRgqcHV/hoiIlZp0Pm5r6NhdeliVA3mPhO1EzaF4GxqpExq+Fz2gldzOq/Wy3nNgPqrNrLL8=

el codigo con lo que hise esto es este

'get certificate in Bin directory
Dim Cert As X509Certificate = X509Certificate.CreateFromCertFile("C:\trabajo\cer tificado\AAA010101AAAsd.cer")
'Now retrieve its properties in output window using ToString Mehtod. Since this class it also have many other
'methods that do the same job
'Get the most important values in string format.
Dim resultsTrue As String = Cert.ToString(True)
'Display the value in output window
Dim certificado As String
'a = Convert.FromBase64String(Cert.GetCertHashString)
certificado = Cert.GetPublicKeyString
MessageBox.Show(certificado)
Debug.WriteLine(resultsTrue)
'Now display Serial number in bytes with GetSerialNumber() method
Dim SerialNumber() As Byte = Cert.GetSerialNumber()
Dim Sr As Byte
Dim st As String
Debug.Write("Serial Number in Bytes: ")
For Each Sr In SerialNumber
st += CStr(Sr)
Debug.Write(Sr)
Next
'MessageBox.Show(st)

pero no he podido encontrar lo que busco, al menos no se como se llama esa cadena muchos me dicen que es la publickey, pero aun no estoy seguro

si alguien puede ayudarnos pues serai de mucho agrado

saludos

Dar Kanon