I have created private key and public key using below commands,
openssl genrsa -out privatekey.pem 1024
openssl req -new -x509 -key privatekey.pem -out publickey.cer -days 1825
Seems like both are in different format. I need to convert rsa privatekey.pem to x509 format.
Is there any way i can do that?