Home

Published

- 1 min read

macbook generate .pem

img of macbook generate .pem

The solution for this is noted below

macbook generate .pem

Solution

   brew <upgrade|install> openssl
openssl genpkey -algorithm RSA -aes-256-cbc -outform PEM -out private_key.pem -pkeyopt rsa_keygen_bits:2048
chmod 0400 private_key.pem
ssh-keygen -e -f private_key.pem > public_key.pem

Try other methods by searching on the site. That is if this doesn’t work