Certificate.password

Note:

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

Property Description

The password for the digital certificate. If the certificate file is password-protected, you can store the password with the certificate record. If the certificate is not password-protected, enter an empty string.

This property accepts the script ID of an API secret that stores your certificate password. For more information about API secrets, see Secrets Management.

Type

string (write-only)

Module

N/certificateControl Module

Parent Object

certificateControl.Certificate

Sibling Object Members

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
...
//create a variable to hold the properties of the certificate object
var options = {
    name : 'testCertp12',
    description : 'testDescription',
    //for password, enter the guid associated with your digital certificate or an empty string
    password: 'yourCertPassword',
    scriptId : '_testidp12',
    };
//create the certificate record with the options variable
var newCertificate = cc.createCertificate(options);
//save the certificate object
newCertificate.save();
...
// Add additional code 

          

Related Topics

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

General Notices