Generate public and private keys with OpenSSL

Private:

openssl genrsa -out my-bank.key 1024
Public:
openssl rsa -in my-bank.key -pubout > mybank.pem