openssl x509 -inform der -in certificate.cer -out certificate.pem
openssl x509 -inform der -in certificate.p12 -out certificate.pem
openssl x509 -inform der -in certificate.cer -out certificate.pem
openssl x509 -inform der -in certificate.p12 -out certificate.pem