Giter Club home page Giter Club logo

harvest21's Introduction

'21 Positioning and Metadata with MQTT

Notes

How to access MQTT through OpenShift TLS route.

OpenShift

  1. Deploy a mqtt image to openshift
    • quay.io/kboone/mosquitto-ephemeral:latest
  2. Create a route
apiVersion: route.openshift.io/v1
kind: Route
metadata:
  name: mosquitto-ephemeral-tls
spec:
  host: mqtt.xxxx.xxxx
  port:
    targetPort: 8883
  tls:
    termination: passthrough
  to:
    kind: Service
    name: mosquitto-ephemeral-tls
    weight: 100
  wildcardPolicy: None

DNS

Add a CNAME to provider (eg GoDaddy) matching the status.ingress.routerCanonicalHostname on the route

Type 	Name 	Value 	                                    TTL 	Actions
cname 	mqtt 	elb.b9ad.pro-us-east-1.openshiftapps.com 	1 Hour

TLS / MQTT Server

  1. Generate ca.key + csr
  2. Generate server.key + csr
  3. Generate extfile with commonName and subjectAltName DNS
  4. Generate x509 server.crt
  5. Create tls secrets for server.crt/key and ca.crt/key
  6. Mount secrets and ensure mosquitto.conf is updated
  7. Use mosquitto_passwd to create a password file, mount from secret
  8. Generate der server.pem
    • openssl x509 -inform pem -in server.crt -outform der -out server.pem

Android / MQTT client

  1. What was done with the pem from here?
    • does not look to be loaded anywhere in the code
    • it is checked in under res/raw/server.pem
    • it may have also been manually added as a User Certificate on the test device

references

harvest21's People

Contributors

jw3 avatar

Watchers

 avatar

harvest21's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.