Go to file
James Pace d4f2107bbb Don't track this. 2022-03-26 22:26:18 -04:00
debian Don't track this. 2022-03-26 22:26:18 -04:00
examples Add packaging. 2022-03-26 20:10:14 -04:00
include/j7s-plugin Drop the expiration time stuff. 2022-03-25 03:16:31 +00:00
src Pass device grant test. 2022-03-26 01:32:10 +00:00
test Pass device grant test. 2022-03-26 01:32:10 +00:00
.clang-format Add tests. Cleanup formatting. 2022-03-25 03:08:09 +00:00
.gitignore Initial iteration of plugin. 2021-11-08 00:47:39 +00:00
CMakeLists.txt Add packaging. 2022-03-26 20:10:14 -04:00
Dockerfile Add Dockerfile. 2022-03-26 20:38:37 -04:00
LICENSE Documentation update. 2021-11-20 15:05:32 +00:00
README.md More refactoring. Implement an ACL file. Care about token timeouts. 2022-03-24 23:46:27 +00:00
external-deps.cmake Add packaging. 2022-03-26 20:10:14 -04:00

README.md

j7s-mosquitto-plugin

Authentication using JWTs for the mosquitto mqtt broker.

Dependencies

sudo apt install mosquitto-dev g++ cmake libmosquitto-dev mosquitto-clients openssl libssl-dev libyaml-cpp-dev

Generating offline keys

openssl genpkey -algorithm RSA -out rsa_private.pem -pkeyopt rsa_keygen_bits:2048
openssl rsa -in rsa_private.pem -pubout -out rsa_public.pem

Converting Client Keys to Format for Browser

openssl pkcs12 -export -out client.p12 -inkey client-key.pem -in -client.pem -certfile ca.pem