I have configured the mosquitto mqtt broker on a raspberry pi via this link
I have the ca.crt,client.crt and client.key. How do I use them in android? It would be really nice if someone could help me out here
I have found the answer to this and it can be achieved by creating a .pem file which includes the client.crt and client.key.
Then we can create a .bks using portecle which should contain client.pem, ca.crt and server.crt and then we create a socketfactory with the bks and add that socketfactory to client.