auth jwt认证是否支持多个证书验证

环境信息

  • EMQ X 版本:4.1.0
  • 操作系统及版本:centos 7
  • 其他

问题描述

服务端通过RS256生成jwt token,EMQ通过jwt插件校验,插件是否支持多个RSA证书的情况

配置文件及日志

## From where the JWT string can be got
##
## Value: username | password
## Default: password
auth.jwt.from = password

## RSA or ECDSA public key file.
##
## Value: File
auth.jwt.pubkey = etc/certs/rsa_public_key.pem

## Enable to verify claims fields
##
## Value: on | off
auth.jwt.verify_claims = on

## The checklist of claims to validate
##
## Value: String
## auth.jwt.verify_claims.$name = expected
##
## Variables:
##  - %u: username
##  - %c: clientid
auth.jwt.verify_claims.clientId = %c

暂时不支持

好的,多谢,我自己也试了下,配多个时候后面的会覆盖前面的。后期会有版本支持吗?

我们目前没有这种做法,一般证书和服务器都是绑定的,服务器多个证书这种需求第一次遇到