I successfully obtain 3 pem files from Let’s Encrypt. I need to know which of my 3 files is a “Server Certificate” and which is an “Intermediate,” because these are the two files my hosting provider is asking for.
0000_cert.pem
0000_chain.pem
0001_chain.pem
Which is a Server Certficate and which is an Intermediate? … And what is the 3rd one that is left out?
I am providing my own CSR file, which means my certs are not output into the typical /etc/letsencrypt directories! I run this command:
Unfortunately this is indeed the case currently. Also, the documentation of the --csr switch is lacking admirably…
For your (and perhaps many others) information a “conversion” to the regular output files of certbot:
0000_cert.pem = cert.pem (i.e., the server certificate)
0000_chain.pem = chain.pem (i.e., the intermediate certificate)
0001_chain.pem = fullchain.pem (i.e., a concatenation of cert.pem + chain.pem in one file).
Do note however! Every next time you run certbot --csr ..., the number in the file names changes again!
So the next sequence of outputted files would be:
0002_cert.pem
0002_chain.pem
0003_chain.pem
Unless you move or remove the previously generated files of course certbot just looks if he can recognise any previous files and counts upwards from there… If there are no previous files to be found, it just starts over again at zero.