certificateControl.Certificate
Object Description |
The certificate record, including file name and preferences. |
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2019.2 |
Syntax
Important:
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/certificateControl Module Script Samples.
// Add additional code
...
var loadedCertificate = cc.loadCertificate({
scriptId : 'custcertificate_testid'
});
fileObj = file.load({
id: 'SuiteScripts/ecdsa.p12'
});
loadedCertificate.file = fileObj;
loadedCertificate.password = '022b490ad4334c7e86a8304f937ec68f',
loadedCertificate.save();
cc.deleteCertificate({
scriptId : 'custcertificate_testid'
});
...
// Add additional code