How to generate a pair of RSA private and public key in Linux? To generate an RSA private key:openssl genrsa -out private.pem 2048To generate the RSA public key from the RSA private key:openssl rsa -in private.pem -outform PEM -pubout -out public.pemRelated posts:How to generate a pair of SSH private key and public key pairs? How to decrypt a password protected RSA private key? How to generate a CSR from a private SSL key? How to generate a password in Shell on Linux? How to hide my private IP in Email header in Thunderbird? How to choose the key used by SSH for a specific host? utop key bindings / key shortcuts How to generate reference of web pages in the IEEE citation format with bibtex?