Creates a new certificate in the current store, signed by the selected certificate.
certmgr.issueCertificate(certSubject, serialNumber, [callback])
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for this method is defined as:
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
This method creates a new certificate in the current store, signed by the selected certificate. CertSubject specifies the subject of the new certificate. A new keyset (public/private key pair) is generated and associated with the new certificate.
The certificate subject is a comma separated list of distinguished name fields and values. For instance "CN=www.server.com, OU=test, C=US, Efirstname.lastname@example.org". Common fields and their meanings are displayed below.
|CN||Common Name. This is commonly a host name like www.server.com.|
If a field value contains a comma it must be quoted.
SerialNumber specifies the certificate serial number. All certificates signed by the same issuer must have different (unique) serial numbers.
The current certificate selected by the class will be used as the issuing certificate.
If no certificate has been selected in the current CertStore prior to calling this method, or if the selected certificate does not have an associated private key, the method fails with an error.
NOTE: This functionality is only available in Windows.