Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/08/2010, 13:58
javalos532
 
Fecha de Ingreso: mayo-2010
Mensajes: 34
Antigüedad: 13 años, 11 meses
Puntos: 0
Respuesta: Facturación Electrónica o Digital

Que tal Oscar y cgarza, necesito su ayuda, no llego al sello que me da OpenSSL y el cual es el correcto, utilizo el siguiente codigo:

X509Certificate2 _MiCertificado = new X509Certificate2(@"D:\SAT\Files\Out\mycert.p12", "12345");
RSACryptoServiceProvider RSA = (RSACryptoServiceProvider)_MiCertificado.PrivateKe y;

byte[] hash = md5.ComputeHash(System.Text.Encoding.UTF8.GetBytes (pDato));
string signature = Convert.ToBase64String(RSA.SignHash(hash, CryptoConfig.MapNameToOID("MD5")));
return signature;

Cual puede ser el problema ?

Gracias.