Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Issue with Generating Digital Signature Using Private Key
Hello,
I am currently facing an issue while attempting to generate a digital signature using a private key that is attached to a certificate. I have been using the following code snippet successfully for some time:
var signer = cert.createSigner({
certId: certId,
algorithm: cert.HashAlg.SHA256,
});
signer.update(hashedInvoice);
var digitalSignature = signer.sign();
However, suddenly the process stopped working and I am encountering the following error message:
{
"type": "error.SuiteScriptError",
"name": "SIGNING_ERROR",
"message": "An error has occurred during digital signature generation.",
"id": "",
"stack": [
"createError(N/error)",
"signDocument(/SuiteScripts/_az_einv_sa_testsignature.js:57)",
"afterSubmit(/SuiteScripts/_az_einv_sa_testsignature.js:9)"