-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing mosquitto_psk_key_get for certificate whitelisting #292
Comments
Hi, @rianorie! I don't really have any thoughts on the matter and don't have time to look into it in the near future, but PRs are very welcome. |
Hey @iegomez , I just want to confirm that I understand the documentation correctly and that this would be a solution that can be implemented like I proposed? |
Sadly, I don't know because as I said I never looked into PSK functionality regarding Mosquitto and don't have time to do the research right now, so you're probably better off checking Mosquitto docs to understand the feature and the plugin general interface to see if there's a fit. |
not to worry! I'll dig into it and see if it works like I want it to :) Thanks! |
@iegomez sorry, I know you're short on time. I'm tinkering with it, the go part I get.. but how does that |
You'd call your exported Go function from the C file's |
I'm probably not communicating my question clearly.. How will Mosquitto know about my (new) function? I will need to specify it in You made I've been building the docker env and changes I make to the C file are not being picked up as far as I can see. |
After implementing your Go side function and using it in Rebuilding is just a matter of running |
Hello!
I'm fairly new to Mosquitto and MQTT brokers, so I may be misunderstanding the API/documentation.
We are wanting to use client certificates for our devices and be able to revoke these without having to restart the broker. Go auth implements the username and password solution, which is amazing, and a huge leap from having to use the static files on the server.
I was wondering if
mosquitto_psk_key_get
could be used to implement thecrlfile
feature, after a fashion? My situation is using PostgreSQL, so I would probably create a password hash the certificate that we give out for a client and store that hash, and then do a hash check against the database..?Thoughts are welcome :) Also, if this is not the right place for this, please close the issue and direct me in the right direction!
I'd be happy to build it and send in a PR if others are interested.
The text was updated successfully, but these errors were encountered: