B4X
B4X
Load DER encoded X.509 Certificate (.cer, .crt)
See more Certificates Examples
Loads a digital certificate from a binary DER encoded X.509 Certificate (.cer, .crt) 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_ssl.cer")
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)