I think I used this before for the crt file:
openssl x509 -outform der -in your-cert.pem -out your-cert.crt
from http://stackoverflow.com/questions/13732826/convert-pem-to-crt-and-key
For the private key I can’t remember if I just renamed it or tried something from this stackoverflow question: