B4X Requires Chilkat v11.0.0+
B4X
Example: Http.GetServerCert method
Demonstrates how to call the GetServerCert method.Chilkat B4X Downloads
Dim success As Boolean = False
Dim http As ChilkatHttp
http.Initialize("http")
Dim cert As ChilkatCert
cert.Initialize("cert")
success = http.GetServerCert("chilkatsoft.com", 443, cert)
If success = False Then
Log(http.LastErrorText)
Return
End If
Log(cert.SubjectDN)
Log(cert.ValidToStr)
' Output:
' CN=*.chilkatsoft.com
' Wed, 10 Jun 2026 23:59:59 GMT