I’m able to run letsencrypt using manual mode given the following script. When I do so, it creates a file that contains the cert and the chain in a single file called 0000_chain.pem in the same directory that the csr exists in. Is there a way to (1) generate the cert and chain as two separate files and (2) name the location of those files. I’m wondering because haproxy requires a pem file of the following format cert+privkey+intermediate+dhparam and the letsencrypt-auto command below generates a file that I have to parse out the cert and chain files and inject the key file. It would be much easier to cat each of the pieces together.
/opt/letsencrypt/letsencrypt-auto --email email@example.com --text \ --authenticator manual \ --work-dir /tmp/work/ \ --config-dir /tmp/config/ \ --logs-dir /tmp/logs/ auth \ --cert-path /tmp/certs/ \ --chain-path /tmp/chains/ \ --csr example.com.csr
I suspect that there’s a way to generate the cert and chain file as separate files, but can’t seem to find an option in the readme that suggests how to do it. Any ideas? Thanks for reading.