getSignedCertificate( label, password ) method

Returns the certificate with the specified label, and decrypts it if necessary using the specified password, or returns null if the certificate is encrypted and the password is incorrect.

Supported Platforms: Windows Mobile and BlackBerry

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.