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
getSignedCertificate( label, password )
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. |
Certificate object
// 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;