openssl x509 -in mycompany.crt -out mycom_crt.der -outform DER
openssl x509 -in mycom_crt.der -inform DER -out mycom_crt.pem -outform PEM
openssl x509 -in mycom_crt.der -inform DER -out mycom_crt.pem -outform PEM
2. convert key to pem format
openssl rsa -in mycompany.key -out mycom_key.pem