bytehala / android-mqtt-quickstart

Android Studio port of the Eclipse paho MQTT sample project.
151 stars 62 forks source link

SSL connection to a mosquitto broker using self-signed certificate #2

Open davdl92 opened 7 years ago

davdl92 commented 7 years ago

Hi, I'm trying to understand how I can connect in a secure way to a mosquitto broker, running on a Raspberry PI. I have configured mosquitto to ask for valid certificates, signed by my own CA. Now I'm looking in your Android Studio project and I have found the Advanced activity in which it's possible to set the SSL flag and to insert a file path. Which file does it ask for? I'm in possess of .crt and .key files for the client, but I think the application needs something different. Thank you in advance for your help! David