Sample code for 30+ languages & platforms
Xojo Plugin

Example: Http.GetServerCert method

Demonstrates how to call the GetServerCert method.

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim success As Boolean
success = False

Dim http As New Chilkat.Http
Dim cert As New Chilkat.Cert

success = http.GetServerCert("chilkatsoft.com",443,cert)
If (success = False) Then
    System.DebugLog(http.LastErrorText)
    Return
End If

System.DebugLog(cert.SubjectDN)
System.DebugLog(cert.ValidToStr)

// Output:

// CN=*.chilkatsoft.com
// Wed, 10 Jun 2026 23:59:59 GMT