Lianja
Lianja
Load CMS PKCS#7 Certificate (.p7b)
See more Certificates Examples
Loads a digital certificate from a Cryptographic Message Syntax Standard PKCS7 (.p7b) file and fetches information about the cert.Chilkat Lianja Downloads
llSuccess = .F.
loCert = createobject("CkCert")
// LoadFromFile will load virtually any certificate format file.
// It will auto-recognize the format and load appropiately.
llSuccess = loCert.LoadFromFile("/Users/chilkat/testData/cer/chilkat.p7b")
if (llSuccess <> .T.) then
? loCert.LastErrorText
release loCert
return
endif
// DN = "Distinguished Name"
? "SubjectDN:" + loCert.SubjectDN
? "Common Name:" + loCert.SubjectCN
? "Issuer Common Name:" + loCert.IssuerCN
? "Serial Number:" + loCert.SerialNumber
release loCert