FoxPro Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

Visual FoxPro Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
Email Object
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
Socket
Spider
SFTP
SMTP
SSH
SSH Key
SSH Tunnel
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Amazon S3
DKIM / DomainKey
NTLM
RSS
Atom
Byte Array
Service
PPMD
Deflate
DH Key Exchange
DSA
FileAccess
Bzip2
LZW

 

Non-Chilkat Links
Text and String Handling

Load PFX (PKCS#12) and List Certificates

Loads a PFX file (.pfx, .p12) and iterates over the certificates found within.

LOCAL loCertStore
LOCAL lnSuccess
LOCAL lcPfxPath
LOCAL lcPfxPassword
LOCAL i
LOCAL lnNumCerts
LOCAL loCert

loCertStore = CreateObject('Chilkat.CertStore')

lcPfxPath = "/Users/chilkat/testData/pfx/chilkat_ssl.pfx"

lcPfxPassword = "test"
lnSuccess = loCertStore.LoadPfxFile(lcPfxPath,lcPfxPassword)
IF (lnSuccess <> 1) THEN
    ? loCertStore.LastErrorText
    QUIT
ENDIF

lnNumCerts = loCertStore.NumCertificates

? "PFX contains " + STR(lnNumCerts) + " certificates"

IF (lnNumCerts = 0) THEN
    QUIT
ENDIF

FOR i = 0 TO (lnNumCerts - 1)

    loCert = loCertStore.GetCertificate(i)
    IF (NOT (loCert = NULL )) THEN
        ? STR(i) + ": (Common Name) " + loCert.SubjectCN
        ? STR(i) + ": (Serial Number) " + loCert.SerialNumber
        ? STR(i) + ": (Distinguished Name) " + loCert.SubjectDN
        RELEASE loCert
    ENDIF

NEXT

© 2000-2010 Chilkat Software, Inc. All Rights Reserved.

Mail Component · .NET Email Component · ASP Mail Component · XML Parser