title: MQTT broker Mosquitto Error with TLS configuration
body: <p>I'm trying to run MQTT broker (Mosquitto) with TLS support, I followed <a href="http://rockingdlabs.dunmire.org/exercises-experiments/ssl-client-certs-to-secure-mqtt" rel="nofollow noreferrer">http://rockingdlabs.dunmire.org/exercises-experiments/ssl-client-certs-to-secure-mqtt</a> to generate certificates and configuration. If I run  </p>
  
  <pre><code>sudo /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf -d -v
  </code></pre>
  
  <p>It throws error in /var/log/mosquitto/mosquitto.log</p>
  
  <pre><code>mosquitto version 1.4.8 (build date Fri, 19 Feb 2016 12:03:16 +0100) starting
  Config loaded from /etc/mosquitto/mosquitto.conf.
  Opening ipv4 listen socket on port 8883.
  Opening ipv6 listen socket on port 8883.
  Error: Unable to load server key file "/etc/mosquitto/certs/mqtt_server.key". Check keyfile.
  </code></pre>
  
  <p>Here is my configuration in <strong>conf.d/mymqtt.conf</strong></p>
  
  <pre><code># MQTT over TLS/SSL
  listener 8883
  cafile /etc/mosquitto/ca_certificates/mqtt_ca.crt
  certfile /etc/mosquitto/certs/mqtt_server.crt
  keyfile /etc/mosquitto/certs/mqtt_server.key
  require_certificate true
  tls_version tlsv1.2
  user mosquitto
  </code></pre>
  
  <p>And these certificate and key files are present in proper location</p>
  
  <p>And here is the content of default <strong>mosquitto.conf</strong></p>
  
  <pre><code>pid_file /var/run/mosquitto.pid
  
  persistence true
  persistence_location /var/lib/mosquitto/
  
  log_dest file /var/log/mosquitto/mosquitto.log
  
  include_dir /etc/mosquitto/conf.d
  </code></pre>