Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android mqtts connection failed #29

Open
KrifaYounes opened this issue Jun 23, 2020 · 0 comments
Open

android mqtts connection failed #29

KrifaYounes opened this issue Jun 23, 2020 · 0 comments

Comments

@KrifaYounes
Copy link

KrifaYounes commented Jun 23, 2020

I have configure my broker with SSL like this in mosquitto.conf

listener 8883
protocol mqtt
cafile /usr/local/etc/mosquitto/certs2/ca.crt
keyfile /usr/local/etc/mosquitto/certs2/server.key
certfile /usr/local/etc/mosquitto/certs2/server.crt

listener 443
protocol websockets
cafile /usr/local/etc/mosquitto/certs/ca.crt
keyfile /usr/local/etc/mosquitto/certs/server.key
certfile /usr/local/etc/mosquitto/certs/server.crt

when I try to connect using react_native_mqtt with useSSL true and my IP host I can't

{ invocationContext: undefined,
errorCode: 7,
errorMessage: 'AMQJS0007E Socket error:undefined.' }

How to use SSL with react_native_mqtt ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant