Modules

filter

 

Objects/Functions

module (N/crypto/certificate)

SuiteScript 2.0

certificate.SignedXml

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=certificate.SignedXml for more information.

N/crypto/certificate Module
certificate.SignedXml
Object Description: A signed XML string. This object is returned by the certificate.signXml(options) method.
Supported Script Types: Server scripts For additional information, see SuiteScript 2.0 Script Types.
Module: N/crypto/certificate Module
Methods and Properties: SignedXml Object Members
Since: 2019.1
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=certificate.SignedXml

Example:

// Code Example 1
//Add additional code
//...
var signedXml = cert.signXML({
algorithm: 'SHA1',
certId: 'custcertificate1',
rootTag: 'infNFe',
xmlString: infNFe.getContents()
});
certificate.verifyXMLSignature({
signedXml:signedXml,
rootTag: 'infNFe'
});

//...
//Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1547156078.html