I have generated a private/public key pair using Putty. I have a private key file with extension .pem and public key file with extension .pub.
Now I want to create a certificate from that and import into windows "trusted root certification authorities". The reason for that is because I need to use private key to connect to SFTP and I don't want to store the private key on disk.
I tried openSSL command shown below but it's failing with the error - "No certificate matches private key"
openssl pkcs12 -export -out MyCert.pfx -inkey private.pem -in public.key
How to resolve that? And get a certificate file containing those two keys inside it?