Click or drag to resize

SatGetCertNumber Method

Get serial number of the X.509 certificate in "special" SAT format.

Namespace: FirmaSAT
Assembly: diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.70.0.38178 (10.70.0.0)
Syntax
public static string GetCertNumber(
	string fileName
)

Parameters

fileName  String
X.509 certificate file or XML file with certificado node

Return Value

String
Certificate serial number
Remarks
Expected format is 20 decimal digits encoded in ASCII format
Example
C#
// From certificate file directly
Console.WriteLine(Sat.GetCertNumber("emisor.cer"));
// 30001000000300023708
// From embedded Certificado attribute
Console.WriteLine(Sat.GetCertNumber("cfdv40-ejemplo-signed-tfd.xml"));
// 30001000000300023708
See Also