AutoIt
AutoIt
Example: Http.GetServerCert method
Demonstrates how to call the GetServerCert method.Chilkat AutoIt Downloads
Local $bSuccess = False
$oHttp = ObjCreate("Chilkat.Http")
$oCert = ObjCreate("Chilkat.Cert")
$bSuccess = $oHttp.GetServerCert("chilkatsoft.com",443,$oCert)
If ($bSuccess = False) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite($oCert.SubjectDN & @CRLF)
ConsoleWrite($oCert.ValidToStr & @CRLF)
; Output:
; CN=*.chilkatsoft.com
; Wed, 10 Jun 2026 23:59:59 GMT