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

PSK based encryption for esp8266 #4367

Closed
korish opened this issue Feb 14, 2018 · 3 comments
Closed

PSK based encryption for esp8266 #4367

korish opened this issue Feb 14, 2018 · 3 comments

Comments

@korish
Copy link

korish commented Feb 14, 2018

Hi,

According to Mosquitto documentation, both certificate and PSK based encryption is supported. I've managed to connect esp8266 to mosquitto broker using certificate based encryption. Now I want to try PSK based encryption.

  1. Does esp8266 support this kind of encryption?
  2. Is there any examples available?

Thanks!

@korish korish changed the title MQTT PSK based encryption PSK based encryption for esp8266 Feb 14, 2018
@igrr
Copy link
Member

igrr commented Feb 14, 2018

At the moment axTLS is used as the TLS stack. It doesn't support PSK.

@earlephilhower
Copy link
Collaborator

BearSSL (#4273) also doesn't support true PSK, if I understand it correctly. It only supports pre-shared keys in the sense that it ignores x509 certificates completely on a connection and will use a public key you give it (instead of the one on an x509 cert). So it saves time(1-2 seconds) and memory(~2K) on setup. If you're not doing massive amounts of short connections, I'm not sure it's such a win, honestly.

I see mbedTLS supports TLS-PSK (per wikipedia), so if you really need it then I think the ESP32 maybe in your future as I think it uses that library.

@devyte
Copy link
Collaborator

devyte commented Feb 16, 2018

Closing as won't fix.

@devyte devyte closed this as completed Feb 16, 2018
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

4 participants