Visual FoxPro
Visual FoxPro
Windows Certificate Stores - Find Certificate by Common Name
See more Certificates Examples
Searches the Windows certificate stores for a certificate that matches the specified common name (CN).Note: This example requires Chilkat v10.0.0 or greater.
Chilkat Visual FoxPro Downloads
LOCAL lnSuccess
LOCAL loCert
lnSuccess = 0
loCert = CreateObject('Chilkat.Cert')
lnSuccess = loCert.LoadByCommonName("Chilkat Software, Inc.")
IF (lnSuccess = 0) THEN
? loCert.LastErrorText
RELEASE loCert
CANCEL
ENDIF
? loCert.SubjectDN
? "Success."
RELEASE loCert