Sample code for 30+ languages & platforms
AutoIt

Convert Certificate from DER to PEM.

See more Certificates Examples

Loads a digital certificate from any format, such as DER, and saves to PEM format.

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.
; In this case, load a DER format certificate and convert to PEM.
$bSuccess = $oCert.LoadFromFile("qa_data/certs/testCert.cer")
If ($bSuccess <> True) Then
    ConsoleWrite($oCert.LastErrorText & @CRLF)
    Exit
EndIf

$bSuccess = $oCert.ExportCertPemFile("qa_data/certs/testCert.pem")
If ($bSuccess <> True) Then
    ConsoleWrite($oCert.LastErrorText & @CRLF)
    Exit
EndIf

ConsoleWrite("Converted certificate from DER to PEM format." & @CRLF)