Skip to content

android mqtts connection failedΒ #29

@KrifaYounes

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 ?

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