Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Get Revoked Status of a Certificate This ASP script shows how to get the revoked status of a digital certificate. <html>
<head>
<title>Get Certificate Revoked Status</title>
</head>
<body>
<%
' Get an object to create a certificate store object
set ccs = Server.CreateObject("ChilkatCertificate.ChilkatCreateCS")
' Open the local machine certificate store.
set certStore = ccs.OpenLocalSystemStore()
' Iterate over the certificates
for i = 0 to certStore.NumCertificates - 1
set cert = certStore.GetCertificate(i)
' Show the name of the certificate and whether it is revoked.
Response.write cert.SubjectCN & ": "
if cert.Revoked then
Response.Write "REVOKED"
else
Response.Write "Not Revoked"
end if
Response.Write "<br><br>"
next
%>
</body>
</html>
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.