Modules
Objects/Functions
SuiteScript 2.0
{Signer}.sign({outputEncoding: {string}})
N/crypto/certificate Module
Signer.sign()
Method Description:
Signs the string and returns the signature.
Returns:
string
Supported Script Types:
Server scripts
For additional information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/crypto/certificate Module
Parent Object:
certificate.Signer
Sibling Object Members:
Signer Object Members
Since:
2019.1
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Signer.sign(options)
Example:
// Code Example 1
//Add additional code
//...
var signer = certificate.createSigner({
certId: 'custcertificate1',
algorithm: 'SHA1'
});
signer.update("test");
var result = signer.sign();
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1547244059.html