Skip to content
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

[Question] TLS PSK Authentication #75

Open
nolwad opened this issue Jul 8, 2022 · 1 comment
Open

[Question] TLS PSK Authentication #75

nolwad opened this issue Jul 8, 2022 · 1 comment

Comments

@nolwad
Copy link

nolwad commented Jul 8, 2022

Is this library compatible with PSK Authentication? The MQTT server that my company has is set up for PSK based authentication and encryption and as such, I believe it doesn't use a root certificate, but rather a psk identity and key to be passed in when connecting as a client. As an example, when connecting from the terminal I'd put in this command to subscribe:

mosquitto_sub -h 160.36.60.20 -t 'test' -u username -P password -p 8883 --psk-identity user --psk 123456789

It works fine, but with the Arduino I can't input the psk information. Is there a way to do it with this library, or does psk need to be on the Arduino's crypto chip itself?

@nolwad
Copy link
Author

nolwad commented Jul 8, 2022

The code must be sending the server IP, topic, username, password, and port. Is there a way I can force my code to send my psk information along with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant