Node.js
Node.js
Transition from Email.FindIssuer to Cert.GetIssuer
Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var success = false;
var email = new chilkat.Email();
var cert = new chilkat.Cert();
// ...
// ...
// ------------------------------------------------------------------------
// The FindIssuer method is deprecated:
// certObj: Cert
var certObj = email.FindIssuer(cert);
if (email.LastMethodSuccess == false) {
console.log(email.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using Cert.GetIssuer.
// Your application creates a new, empty Cert object which is passed
// in the last argument and filled upon success.
var issuerCert = new chilkat.Cert();
success = cert.GetIssuer(issuerCert);
if (success == false) {
console.log(email.LastErrorText);
return;
}
}
chilkatExample();