I applied for an SSL certificate and after the application process I got a file containing base 64 encoded data between following lines.
-----BEGIN PKCS7-----
-----END PKCS7-----
When I try to install SSL on my website I got invalid certificate format.
Does this file contain private key? How can I convert this file to obtain standard .crt file?
openssl pkcs7 -print_certsconverts it to cert-as-PEM andopenssl x509 -outform derconverts that to cert-as-DER. If your p7 contains more than one cert, there is no single standard 'crt' format, it depends on the software. – dave_thompson_085 Apr 29 '18 at 08:30