iegomez / mosquitto-go-auth

Auth plugin for mosquitto.
MIT License
495 stars 165 forks source link

JWT RS256 public key verification "jwt parse error: key is of invalid type" #326

Open orzeszkownik opened 3 months ago

orzeszkownik commented 3 months ago

Hello, I have successfully configured mosquitto with JWT JS authorization it works well with HS256 tokens, but the problem is that "secret" have to be shared. So I generated tokens signed with private key and would like to verify it with public key. Is it possible, how to configure it? Now I get "jwt parse error: key is of invalid type" message in log.

Best,