Where to get OpenSSL and pscp for windows
OpenSSL for Windows (either msi or binaries)
https://indy.fulgan.com/SSL/
Common OpenSSL commands
Convert CER to PEM
Keep in mind that .pem and .cer are both the same format - and you may just be able to rename a .pem file to a .cer and vice-versa. If that doesn't give you the desired result, use this command: openssl x509 -inform der -in certificate.cer -outform pem -out certificate.pem
Convert PEM to DER
openssl x509 -outform der -in certificate.pem -out certificate.der
Convert CRT to PEM:
openssl x509 -in cert.crt -out cert.pem
PSCP for Windows – To copy files over an SSH session
To Download pscp (including putty) –
https://it.cornell.edu/managed-servers/transfer-files-using-putty
To copy the local file c:\….\info.txt as user ec2-user to the server ec2-privateip with destination directory /var/log, type at the prompt:
pscp c:\...\info.txt ec2-user@privateIP:/var/log/info.txt
Leave a Reply