The following openssl command can be used to convert a certificate in .cer/.crt/.der format to .pem format:
# openssl x509 -inform DER -in MYCERT.cer -out MYCERT.pem
For more information, please see the OpenSSL x509 documentation available here.