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
|
List Windows Current User CertificatesDemonstrates how to open the registry-based Current User certificate store on a Windows OS and list the digital certificates. LOCAL loCcs LOCAL loCs LOCAL loCert LOCAL lnNumCerts LOCAL i * This example demonstrates how to list the certificates * in the logged-on user's registry-based Current User Certificate Store. * This is our certificate store factory object: loCcs = CreateObject('Chilkat.CreateCS') loCcs.ReadOnly = 1 * Open the current-user certificate store: loCs = loCcs.OpenCurrentUserStore() IF (NOT (loCs = NULL )) THEN lnNumCerts = loCs.NumCertificates * Print the distinguished name of each certificate FOR i = 0 TO lnNumCerts - 1 loCert = loCs.GetCertificate(i) ? loCert.SubjectDN NEXT ELSE =MESSAGEBOX(loCcs.LastErrorText) ENDIF * The Chilkat Certificate, Certificate Store, Private Key, * Public Key, and Key Container classes / objects are freeware. * They are used by and included with the Chilkat Email, * Crypt, S/MIME, and other commercial Chilkat components. |
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.
Mail Component · .NET Email Component · ASP Mail Component · XML Parser