getPublicCertificate( label ) method

Returns a certificate without the signedCertificate part set.

Supported Platforms : Windows Mobile and BlackBerry.

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.