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

N/certificateControl Module

Methods and Properties

Certificate Object Members

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 = certificateControl.loadCertificate({
    scriptId: 'custcertificate_testid'
});
fileObj = file.load({
    id: 'SuiteScripts/ecdsa.p12'
});
loadedCertificate.file = fileObj;
loadedCertificate.password = '022b490ad4334c7e86a8304f937ec68f',
loadedCertificate.save();
certificateControl.deleteCertificate({
    scriptId: 'custcertificate_testid'
});
...
//Add additional code 

          

Related Topics

General Notices