certificateControl.Certificate

Note:

The content in this help topic pertains to SuiteScript 2.0 and SuiteScript 2.1.

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 = 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 

          

Related Topics

Digital Signing
Uploading Digital Certificates
N/https/clientCertificate Module
N/crypto/certificate Module

General Notices