Create signature as a base64 string from data in an XML file ready to be inserted as a sello node.

Namespace:  FirmaSAT
Assembly:  diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.50.0.29531

Syntax

C#
public static string MakeSignatureFromXml(
	string xmlFile,
	string keyFile,
	string password
)
Visual Basic (Declaration)
Public Shared Function MakeSignatureFromXml ( _
	xmlFile As String, _
	keyFile As String, _
	password As String _
) As String

Parameters

xmlFile
Type: System..::.String
Name of input XML file to be processed (or a string containing XML data)
keyFile
Type: System..::.String
Name of private key file
password
Type: System..::.String
Password

Return Value

Signature in base64 format or empty string on error

Examples

CopyC#
string s = Sat.MakeSignatureFromXml("cfdv40-ejemplo.xml", "emisor.key", "12345678a");
Console.WriteLine(s);
// JQJd6rbiMZj1tZVb1Ta8l88bE7pTDm/aAl ...

See Also