ASP Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

ASP Examples

ASP String
ASP Byte Array
Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
S/MIME
Socket
Spider
RSA Encryption
Tar
ASP Upload
XML
XMP
Zip Compression

More Examples...
Email Object
POP3
SMTP
RSS
Atom
Self-Extractor

Unreleased...
Service
PPMD
Deflate
Bzip2
LZW
Bz2
DH Key Exchange
DSA
Icon

 

 

 

 

 

 

Determine if Certificate has a Trusted Root

ASP script to determine if a certificate has a trusted root.

<html>
<head>
<title>Determine if Certificate's Root is Trusted</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 has a trusted root.
	Response.write cert.SubjectCN & ": "
	if cert.TrustedRoot = 1 then
		Response.Write "Certificate has a Trusted Root"
	else
		Response.Write "Certificate does NOT have a Trusted Root"
	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.