S
S
super_yura82020-12-22 17:18:30
JavaScript
super_yura8, 2020-12-22 17:18:30

Connect MQTT without SSl with https?

Greetings. I have a problem: I have an MQTT server and a site on https. And here's the problem - I don't have an SSL certificate for MQTT (I tried to install it, it didn't work). And with https, I can't connect to MQTT via js without SSL. So that's the question. How to connect MQTT with js.
note: I use paho mqtt, the site is hosted, and MQTT is on a remote Linux server, the site is written in laravel.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2020-12-22
@ky0

Try again - and still deliver. Unencrypted requests from HTTPS pages are correctly blocked.

A
Alexander, 2020-12-22
@NeiroNx

I think that you just need to set up a gate on the websocket, and let nginx deal with the certificate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question