This is the command to export private key to generate public key.
openssl genrsa -out key.pem 1024 openssl rsa -in key.pem -pubout > pub.pem
This is the command to export private key to generate public key.
openssl genrsa -out key.pem 1024 openssl rsa -in key.pem -pubout > pub.pem