Sample code for 30+ languages & platforms
Perl Requires Chilkat v11.0.0+

Transition from Email.FindIssuer to Cert.GetIssuer

Provides instructions for replacing deprecated FindIssuer method calls with Cert.GetIssuer.

Chilkat Perl Downloads

Perl
use chilkat();

$success = 0;

$email = chilkat::CkEmail->new();
$cert = chilkat::CkCert->new();

#  ...
#  ...

#  ------------------------------------------------------------------------
#  The FindIssuer method is deprecated:

# certObj is a Cert
$certObj = $email->FindIssuer($cert);
if ($email->get_LastMethodSuccess() == 0) {
    print $email->lastErrorText() . "\r\n";
    exit;
}

#  ...
#  ...

#  ------------------------------------------------------------------------
#  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.

$issuerCert = chilkat::CkCert->new();
$success = $cert->GetIssuer($issuerCert);
if ($success == 0) {
    print $email->lastErrorText() . "\r\n";
    exit;
}