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
Internet of Things Stack Exchange is a question and answer site for builders and users of networked sensors and control devices in the contexts of smart homes, industry automation, or environmental sensors. It only takes a minute to sign up.
Sign up to join this communityI 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.