This is what I did on windows.
- Download a zip file that contains the open ssl exe from Google
- Unpack the zip file and go into the bin folder.
- Go to the address bar in the bin folder and type cmd. This will open a command prompt at this folder.
- move/Put the .pem file into this bin folder.
- Run two commands. One creates the cert and the second the key file
openssl x509 -outform der -in yourPemFilename.pem -out certfileOutName.crt
openssl rsa -in yourPemFilename.pem -out keyfileOutName.key