Sample code for 30+ languages & platforms
PowerShell

Transition from Email.FindIssuer to Cert.GetIssuer

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

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

$email = New-Object Chilkat.Email
$cert = New-Object Chilkat.Cert

# ...
# ...

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

$certObj = $email.FindIssuer($cert)
if ($email.LastMethodSuccess -eq $false) {
    $($email.LastErrorText)
    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 = New-Object Chilkat.Cert
$success = $cert.GetIssuer($issuerCert)
if ($success -eq $false) {
    $($email.LastErrorText)
    exit
}