title: Securing arduino to mosquitto connection with TLS
body: <p>I'm trying to secure the connection between the arduino <a href="http://pubsubclient.knolleary.net/" rel="noreferrer">pubsub</a> client and mosquitto broker (which is running on a public server) over TLS. </p>
  
  <p>Normally(on windows etc), I can publish/subscribe like bellow while giving the certificate files. (certificate and key files are in my working directory).</p>
  
  <p><code>mosquitto_pub -h myhost.com -p 8883 -t "/test" -m "your secure message" --cafile ca.crt --cert client.crt --key client.key</code></p>
  
  <p><code>mosquitto_sub -h myhost.com -p 8883 -t "/test" --cafile ca.crt --cert client.crt --key client.key</code></p>
  
  <p>But is there a way to do this in arduino?</p>