Visual Basic 6.0
Visual Basic 6.0
Example: Http.GetServerCert method
Demonstrates how to call the GetServerCert method.Chilkat Visual Basic 6.0 Downloads
Dim success As Long
success = 0
Dim http As New ChilkatHttp
Dim cert As New ChilkatCert
success = http.GetServerCert("chilkatsoft.com",443,cert)
If (success = 0) Then
Debug.Print http.LastErrorText
Exit Sub
End If
Debug.Print cert.SubjectDN
Debug.Print cert.ValidToStr
' Output:
' CN=*.chilkatsoft.com
' Wed, 10 Jun 2026 23:59:59 GMT