Setting SSL variables
Posted: Tue May 26, 2020 5:38 am
In pursuit of some API issues (viewtopic.php?f=40&t=29428&sid=68a54a38 ... 4da7d13e36 ) I started digging through php code and found that database.php.default references three ZM SSL variables:
For ZM I was setting the following in a custom conf file (located under zm/conf.d):
ZM fails to start if I add a line for ZM_DB_SSL_CA_CERT.
Also, can anyone tell me what files are for which variable when dealing with certs issued from LetsEncrypt? There are four files:
cert.pem
chain.pem
fullchain.pem
privkey.pem
This is what I have in my apache2/apache2/sites-enabled/000-default-le-ssl.conf file (and I believe that it's working OK):
Code: Select all
'ssl_ca' => ZM_DB_SSL_CA_CERT,
'ssl_key' => ZM_DB_SSL_CLIENT_KEY,
'ssl_cert' => ZM_DB_SSL_CLIENT_CERT,
Code: Select all
ZM_DB_SSL_CLIENT_CERT=/etc/letsencrypt/live/<server FQDN>/fullchain.pem
ZM_DB_SSL_CLIENT_KEY=/etc/letsencrypt/live/<server FQDN>/privkey.pem
Also, can anyone tell me what files are for which variable when dealing with certs issued from LetsEncrypt? There are four files:
cert.pem
chain.pem
fullchain.pem
privkey.pem
This is what I have in my apache2/apache2/sites-enabled/000-default-le-ssl.conf file (and I believe that it's working OK):
Code: Select all
ServerName <server FDQN>
SSLCertificateFile /etc/letsencrypt/live/<server FQDN>/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/<server FDQN>/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf