getPublicCertificate( label ) method

Certificate

Syntax

getPublicCertificate( label )

Parameters

Name Type Description
label String label of the desired certificate

Returns

certificate object

Example

// The following script gets the 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.getPublicCertificate(labels[0]);

Source

Certificate.js, line 164.