Certificate.password
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 |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2019.2 |
Syntax
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