Sample code for 30+ languages & platforms
AutoIt

Transition from Cert.GetCertChain to Cert.BuildCertChain

Provides instructions for replacing deprecated GetCertChain method calls with BuildCertChain.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oCert = ObjCreate("Chilkat.Cert")

; ------------------------------------------------------------------------
; The GetCertChain method is deprecated:

Local $oCertchainObj = $oCert.GetCertChain()
If ($oCert.LastMethodSuccess = False) Then
    ConsoleWrite($oCert.LastErrorText & @CRLF)
    Exit
EndIf

; ...
; ...

; ------------------------------------------------------------------------
; Do the equivalent using BuildCertChain.
; Your application creates a new, empty CertChain object which is passed 
; in the last argument and filled upon success.

$oCertchainOut = ObjCreate("Chilkat.CertChain")
$bSuccess = $oCert.BuildCertChain($oCertchainOut)
If ($bSuccess = False) Then
    ConsoleWrite($oCert.LastErrorText & @CRLF)
    Exit
EndIf