Skip to content

android mqtts connection failed #29

Description

@KrifaYounes

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions