getSignedCertificate( label, password ) method

Certificate

Syntax

getSignedCertificate( label, password )

Parameters

Name Type Description
label String label of the desired certificate
password String Access password for the private key of the certificate.Pass null unless the platform requires a password.

Returns

Certificate object

Example

// The following script gets the signed certificate data for the first
// certificate to match the provided subject and issuer
var certStore = CertificateStore.getDefault();
var labels = certStore.certificateLabels("MyUser", mydomain.com");
var cert = certStore.getSignedCertificate(labels[0]);

var username = cert.subjectCN;
var password = cert.signedCertificate;

Source

Certificate.js, line 209.