Converting Certificates to PEM

Normally certs come in different formats, DER, CER etc and it might be necessary to convert formates, which is very easy to do with openssl