Fix TLS transport: remove ca_list_file that breaks transport on Docker

The ca_list_file option requires /etc/ssl/certs/ca-certificates.crt to
exist and be readable.  That file is created by the ca-certificates
package, which was only a Recommends dep (not installed via
--no-install-recommends), so the file was absent in the container image
and Asterisk rejected the entire transport-tls config with:

  ERROR: ca_list_file /etc/ssl/certs/ca-certificates.crt is either
         missing or not readable

ca_list_file is only consulted when verify_client=yes (mutual TLS /
client certificate auth).  Since we never set that option, the line
serves no purpose and is removed from both the fresh-config generator
and the upgrade-injection block.

Also add ca-certificates explicitly to the Dockerfile apt-get install
so the package is always present for any future use.

https://claude.ai/code/session_01PTzYWkePEG3tDCMSLfWrXE
This commit is contained in:
Claude
2026-02-24 21:25:44 +00:00
parent 1a3d409d50
commit 376a99b768
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -207,7 +207,7 @@ bind=0.0.0.0:5061
; Server IP: ${local_ip} | Public IP: ${PUBLIC_IP:-unknown}
cert_file=/etc/asterisk/certs/server.crt
priv_key_file=/etc/asterisk/certs/server.key
ca_list_file=/etc/ssl/certs/ca-certificates.crt
; ca_list_file not set — only needed for verify_client=yes (client cert auth)
method=tlsv1_2
${nat_settings}
@@ -273,7 +273,7 @@ protocol=tls
bind=0.0.0.0:5061
cert_file=/etc/asterisk/certs/server.crt
priv_key_file=/etc/asterisk/certs/server.key
ca_list_file=/etc/ssl/certs/ca-certificates.crt
; ca_list_file not set — only needed for verify_client=yes (client cert auth)
method=tlsv1_2
${nat_settings}