I’m getting ready to deploy a new webmail server, and want to be running everything over SSL.
The HTTPS part is pretty simple, but I want to be able to use the same certs with OpenSMTPD (https://www.opensmtpd.org/faq/certificates.html) so that the mail server (which will initially be on the same host) connects via TLS.
Of the four files that form the LE cert collection (cert.pem, chain.pem, fullchain.pem, privkey.pem), which correspond to “mail.example.com.key” and “mail.example.com.crt” in the OpenSMTPD example (https://www.opensmtpd.org/faq/example1.html)?
Associate the certificate located in certfile with
hostname. A certificate chain may be created by appending one or many certificates, including a Certificate Authority certificate, to certfile.
Creation of certificates is documented in
starttls(8).