Sample code for 30+ languages & platforms
AutoIt

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 AutoIt Downloads

AutoIt
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/chilkat.p7b")
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)