Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
|
|
Get a Certificate's Serial NumberASP script to display a certificate's serial number. <html>
<head>
<title>Get a Certificate's Serial Number</title>
</head>
<body>
<%
' Get an object to create a certificate store object
set ccs = Server.CreateObject("Chilkat.CreateCS")
' 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 it's serial number.
Response.write cert.SubjectCN & ": " & cert.SerialNumber
Response.Write "<br><br>"
next
%>
</body>
</html>
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.