My customer has sent me tso files:
.cer file and a
.p12 contains the private key and a chain of certificates.
I need to know what's
Is there any way to know if
.cer is the CA certificate?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
cer is simply a file extension - it formally means nothing. However, by convention, it is often used to signify an X509 certificate.
Have a look at the file with a text editor to see whether it is a Base-64 encoded file (consists of a subset of the ASCII character set) or a binary file.
If it's the former, there should be a header line such as
-----BEGIN CERTIFICATE----- which signifies that this is a X509 certificate in PEM format, which can be viewed with:
openssl x509 -noout -text -in cerfile.cer
If it's the latter (a binary file), you can view it with:
openssl x509 -noout -text -inform DER -in certfile.cer
I would suggest that the
.p12 file is for the client, while the
.cer file is for the server in order for it to be able to verify the certificate(s) sent by the client.