SatGetCertAsString Method |
Get certificate data as a base64 string.
Namespace: FirmaSATAssembly: diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.70.0.38178 (10.70.0.0)
Syntaxpublic static string GetCertAsString(
string fileName
)
Public Shared Function GetCertAsString (
fileName As String
) As String
Parameters
- fileName String
- X.509 certificate file or XML file with Certificado node
Return Value
StringCertificate data as a string of base64 characters
RemarksUse 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")
ExampleConsole.WriteLine(Sat.GetCertAsString("emisor.cer"));
See Also