Diferència entre revisions de la pàgina «Configuració de MQTTS a un servidor remot basat en Debian 9»
De Wiki d'en Jordi Binefa
m (→Generació dels certificats TLS) |
m (→Generació dels certificats TLS) |
||
Línia 7: | Línia 7: | ||
root@remot:/etc/mosquitto/certs# wget https://raw.githubusercontent.com/owntracks/tools/master/TLS/generate-CA.sh | root@remot:/etc/mosquitto/certs# wget https://raw.githubusercontent.com/owntracks/tools/master/TLS/generate-CA.sh | ||
root@remot:/etc/mosquitto/certs# chmod +x generate-CA.sh | root@remot:/etc/mosquitto/certs# chmod +x generate-CA.sh | ||
− | root@remot:/etc/mosquitto/certs# | + | root@remot:/etc/mosquitto/certs# HOSTLIST="broker.electronics.cat" ./generate-CA.sh broker.electronics.cat |
en construcció / under construction | en construcció / under construction |
Revisió del 20:14, 1 ago 2018
Prèviament haureu de tenir una Instal·lació de MQTT a un servidor remot basat en Debian 9
Generació dels certificats TLS
És molt important que definiu al principi si voleu accedir al servidor intermediari (broker) mitjançant IP (local o pública) o per nom de domini. En aquest exemple fem l'accés per nom de domini broker.electronics.cat
root@remot:/etc/mosquitto# cd /etc/mosquitto/certs/ root@remot:/etc/mosquitto/certs# wget https://raw.githubusercontent.com/owntracks/tools/master/TLS/generate-CA.sh root@remot:/etc/mosquitto/certs# chmod +x generate-CA.sh root@remot:/etc/mosquitto/certs# HOSTLIST="broker.electronics.cat" ./generate-CA.sh broker.electronics.cat
en construcció / under construction