certificate.signXml(options)

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Signs the inputXml string using the certId. Formatting, such as line breaks, is disabled.

Returns

certificate.SignedXml

Supported Script Types

Server scripts

For additional information, see SuiteScript 2.x Script Types.

Governance

10 units

Module

N/crypto/certificate Module

Since

2019.1

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.xmlString

string

required

Input XML string

options.certId

string

required

Certificate ID

options.algorithm

string

required

The hash algorithm.

Set this property using the certificate.HashAlg enum.

options.rootTag

string

required

Root tag of XML section to sign.

options.insertionTag

string

optional

Tag where to insert the signature.

Related Topics

SuiteScript 2.x Modules
SuiteScript 2.x

General Notices