Go to file
James Pace 5ef2e0b929 Add key_file. 2022-03-25 00:57:21 +00:00
examples Add key_file. 2022-03-25 00:57:21 +00:00
include/j7s-plugin Add key_file. 2022-03-25 00:57:21 +00:00
src Add key_file. 2022-03-25 00:57:21 +00:00
test More refactoring. Implement an ACL file. Care about token timeouts. 2022-03-24 23:46:27 +00:00
.clang-format Mass refactor. Clang-format. Start adding tests. Use FetchContent. 2022-03-24 00:20:21 +00:00
.gitignore Initial iteration of plugin. 2021-11-08 00:47:39 +00:00
CMakeLists.txt More refactoring. Implement an ACL file. Care about token timeouts. 2022-03-24 23:46:27 +00: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 Mass refactor. Clang-format. Start adding tests. Use FetchContent. 2022-03-24 00:20:21 +00: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