SatInsertCertToBytes(String, String) Method |
Insert certificate information into an XML document (as a file) and output to memory.
Namespace: FirmaSATAssembly: diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.70.0.38178 (10.70.0.0)
Syntaxpublic static byte[] InsertCertToBytes(
string xmlFile,
string certFile
)
Public Shared Function InsertCertToBytes (
xmlFile As String,
certFile As String
) As Byte()
Parameters
- xmlFile String
- Name of input XML file to be processed (or a string containing XML data)
- certFile String
- X.509 certificate file
Return Value
ByteXML data as a byte array.
Remarks(file) --> (bytes)
Example
string xmlStr = File.ReadAllText("cfdv40-ejemplo-nocertnum.xml");
string cerStr = Sat.GetCertAsString("emisor.cer");
byte[] b = Sat.InsertCertToBytes(xmlStr, cerStr);
Console.WriteLine(System.Text.Encoding.UTF8.GetString(b));
See Also