Are the private key and the certificate file the same file?
I'm following the steps on this website to set my environment variables. I have my private key file, but not the certificate file, so I'm just wondering if they are the same file?
The public and private keys together make up a complete certificate. A public key can be signed by a Certificate Authority as well. If you're setting up server software, it will either want both keys in a single file (common in Windows environments) or each key separately (common in *nix environments).
The private key and the certificate are two different things. The private key is known only to the subject of the certificate. The certificate is public and binds the private key to an identity. Some applications want these as separate files, some want them combined into a single file.
A private key or a certificate can be provided in either PEM or DER format. Typically, files in PEM format have a
If the private key and certificate are combined into a single file, that would typically be a PKCS7 or PKCS12 file. The extension for PKCS7 files is often
If you don't have a certificate, the private key won't do you any good yet. A certificate authority has to issue the certificate to you.