openssl genrsa -out private.pem 2048 openssl rsa -in private.pem -pubout -outform PEM -out public.pem