Get certificate data as a base64 string.
Namespace:
FirmaSATAssembly: diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.50.0.29531
Syntax
C# |
---|
public static string GetCertAsString( string fileName ) |
Visual Basic (Declaration) |
---|
Public Shared Function GetCertAsString ( _ fileName As String _ ) As String |
Parameters
- fileName
- Type: System..::.String
X.509 certificate file or XML file with Certificado node
Return Value
Certificate data as a string of base64 characters
Remarks
Use to obtain the value for the Certificado node from a .CER file.
If input is an XML file, this is equivalent to
Sat.GetXmlAttribute(fileName, "Certificado", "Comprobante")
Examples

Console.WriteLine(Sat.GetCertAsString("emisor.cer")); // MIIF+TCCA+GgAwIBAgIUMzAwMDEwMDAwMDAzMDAw ...