Classic ASP
Classic ASP
Example: Http.GetServerCert method
Demonstrates how to call the GetServerCert method.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set http = Server.CreateObject("Chilkat.Http")
set cert = Server.CreateObject("Chilkat.Cert")
success = http.GetServerCert("chilkatsoft.com",443,cert)
If (success = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( http.LastErrorText) & "</pre>"
Response.End
End If
Response.Write "<pre>" & Server.HTMLEncode( cert.SubjectDN) & "</pre>"
Response.Write "<pre>" & Server.HTMLEncode( cert.ValidToStr) & "</pre>"
' Output:
' CN=*.chilkatsoft.com
' Wed, 10 Jun 2026 23:59:59 GMT
%>
</body>
</html>