I'm wondering whether it was a certbot command that once created files with
*-le-ssl.conf, derived from the files being in that directory. I'm not sure whether I created them manually of whether an automatism created them. The latter seem more likely to me.
Anyway, these files are constructed a bit different inside, such that they configure the mod_ssl module:
So far, so good. But why weren't files with this name not generated for every file? Are they some relicts I can delete now? I have all my vhosts configured right.
Those other vhost conf files without a -le-ssl.conf file probably don't have TLS configured, probably because Certbot wasn't asked to. Certbot will only generate -le-ssl.conf files for vhosts it actually issues a certificate for. And if Certbot is instructed to only get a cert or certs for some hostnames, but not others, it will only add -le-ssl.conf files for the vhosts with issued certs.
what circumstance decides that certbot is generating a *-le-ssl.conf rather than editing the existing .conf file? And:
Is the order of statements important (Include before or after the SSL lines?):
SSLCertificateFile /etc/letsencrypt/live/mydomain/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf <<<
Unless there already are SSLCertificateFile/SSLCertificateKeyFile manually added to an existing HTTPS port 443 VirtualHost section, right? E.g., when a user has manually added such a section with snakeoil certs.
I believe in that scenario Certbot would update the SSLCertificateFile/SSLCertificateKeyFile directives with the new paths to /etc/letsencrypt/live/....