B4X
B4X
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 B4X Downloads
Dim success As Boolean = False
Dim cert As ChilkatCert
cert.Initialize("cert")
' LoadFromFile will load virtually any certificate format file.
' It will auto-recognize the format and load appropiately.
success = cert.LoadFromFile("/Users/chilkat/testData/cer/chilkat.p7b")
If success <> True Then
Log(cert.LastErrorText)
Return
End If
' DN = "Distinguished Name"
Log("SubjectDN:" & cert.SubjectDN)
Log("Common Name:" & cert.SubjectCN)
Log("Issuer Common Name:" & cert.IssuerCN)
Log("Serial Number:" & cert.SerialNumber)