Certificate
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;