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

Add SSL support #4

Open
vampywiz17 opened this issue May 2, 2024 · 2 comments
Open

Add SSL support #4

vampywiz17 opened this issue May 2, 2024 · 2 comments

Comments

@vampywiz17
Copy link

Hello ,

Possible to add SSL option to MQTT config? (TLS not necessary)

@Legobas
Copy link
Owner

Legobas commented May 8, 2024

Did you try url: "ssl://<MQTT SERVER>:1883" instead of url: "tcp://<MQTT SERVER>:1883"?
I do not use SSL/TLS myself so I cannot test it.

@vampywiz17
Copy link
Author

vampywiz17 commented May 9, 2024

@Legobas

seems work, but possible skip cert?:

FATAL MQTT connection error="network Error : tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match xxxxxxxx.com"

I hope it help, but i don't know possible to set it up in conf. file:

https://github.com/eclipse/paho.mqtt.golang/blob/master/cmd/ssl/main.go#L90

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

2 participants