B4X
B4X
Load PEM Format Certificate (.pem)
See more Certificates Examples
Loads a PEM format digital certificate 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/cert.pem")
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)