AutoIt
AutoIt
Duplicate openssl pkey -in private.pem -pubout -out pubkey.pem
See more OpenSSL Examples
How to output the public part of a private key: Demonstrates how to duplicate this OpenSSL command:openssl pkey -in private.pem -pubout -out pubkey.pem
Chilkat AutoIt Downloads
Local $bSuccess = False
$oPkey = ObjCreate("Chilkat.PrivateKey")
; Load the private key from an PEM file:
$bSuccess = $oPkey.LoadPemFile("private.pem")
If ($bSuccess = False) Then
ConsoleWrite($oPkey.LastErrorText & @CRLF)
Exit
EndIf
$oPubKey = ObjCreate("Chilkat.PublicKey")
$oPkey.ToPublicKey($oPubKey)
$bSuccess = $oPubKey.SavePemFile(False,"pubKey.pem")
If ($bSuccess <> True) Then
ConsoleWrite($oPubKey.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite("Success." & @CRLF)