AutoIt
AutoIt
Load PEM Format Certificate (.pem)
See more Certificates Examples
Loads a PEM format digital certificate and fetches information about the cert.Chilkat AutoIt Downloads
Local $bSuccess = False
$oCert = ObjCreate("Chilkat.Cert")
; LoadFromFile will load virtually any certificate format file.
; It will auto-recognize the format and load appropiately.
$bSuccess = $oCert.LoadFromFile("/Users/chilkat/testData/cer/cert.pem")
If ($bSuccess <> True) Then
ConsoleWrite($oCert.LastErrorText & @CRLF)
Exit
EndIf
; DN = "Distinguished Name"
ConsoleWrite("SubjectDN:" & $oCert.SubjectDN & @CRLF)
ConsoleWrite("Common Name:" & $oCert.SubjectCN & @CRLF)
ConsoleWrite("Issuer Common Name:" & $oCert.IssuerCN & @CRLF)
ConsoleWrite("Serial Number:" & $oCert.SerialNumber & @CRLF)