certificateControl.unlock(options)

Note:

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

Method Description

Unlocks a certificate record that has been locked with certificateControl.lock(options).

Returns

void

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Governance

10 units

Module

N/certificateControl Module

Since

2021.1

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.id

string

required

The script ID or internal ID for the certificate you want to unlock. You can view the ID of a certificate from the Digital Certificates list at Setup > Company > Certificates.

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
...
//load the certificate record object
var loadedCertificate = certificateControl.loadCertificate({
    scriptId : 'custcertificate_testid'
    });
//lock the certificate
loadedCertificate.unlock({
    id: 'custcertificate_testid'
    });
///save the certificate
loadedCertificate.save();
...
// Add additional code 

          

Related Topics

Digital Signing
Uploading Digital Certificates
N/https/clientCertificate Module
N/crypto/certificate Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices