Hello,
I’m using the emqtt library to try and create an MQTT client.
emqtt_opts = %{
host: "mqtt.mybroker.dev",
port: 1883,
username: "username",
password: "password",
ssl:true,
clientid: "clientid/+",
name: String.to_atom("name/+"),
clean_start: true
}
{:ok, mqtt_pid} = :emqtt.start_link(emqtt_opts)
{:ok, _} = :emqtt.connect(mqtt_pid)
But I get the following warning:
[warning] Description: 'Authenticity is not established by certificate path validation'
Reason: 'Option {verify, verify_peer} and cacertfile/cacerts is missing'
I can’t post or listen to any topics.
It is a type of CA signed server connection and should not pass a local cacertfile.
Can anyone help me? I tried to search cases but i don’t find anything