From 8d235f4e544d2b117bd7dd4c37f6a59677ebd847 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Mon, 16 Apr 2018 14:20:12 -0400 Subject: [PATCH] Actually listen to websockets on websockets tls listener This commit updates a small oversight in the tls websockets listener configuration. It previously wasn't specifying the websockets protocol which meant we were defaulting to use the mqtt protocol. That means when configured the websockets tls port wasn't using websokets at all. This commit fixes the oversight and makes sure we set the proper protocol. Change-Id: I37fb86361bb49c46bd9ff864baaf840468051e51 --- templates/mosquitto.conf.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/templates/mosquitto.conf.erb b/templates/mosquitto.conf.erb index 7ffc4f1..92a5952 100644 --- a/templates/mosquitto.conf.erb +++ b/templates/mosquitto.conf.erb @@ -295,6 +295,7 @@ protocol websockets # Encrypted http websocket port <% if @enable_tls_websocket -%> listener <%= @websocket_tls_port %> +protocol websockets cafile /etc/mosquitto/ca.crt certfile /etc/mosquitto/server.crt keyfile /etc/mosquitto/server.key