AutoIt
AutoIt
Get Certificate Public Key from PEM
See more Certificates Examples
Demonstrates how to load a PEM file containing a certificate and access the public key.Chilkat AutoIt Downloads
Local $bSuccess = False
$oCert = ObjCreate("Chilkat.Cert")
$bSuccess = $oCert.LoadFromFile("qa_data/pem/my_cert.pem")
If ($bSuccess = False) Then
ConsoleWrite($oCert.LastErrorText & @CRLF)
Exit
EndIf
$oPubkey = ObjCreate("Chilkat.PublicKey")
$oCert.GetPublicKey($oPubkey)
; Examine the public key as XML..
ConsoleWrite($oPubkey.GetXml() & @CRLF)