如何使用 RSA 加密来加密 ActiveMQ Web 控制台(码头)?

How to encrypt ActiveMQ web console (jetty) using RSA encryption?

我们使用的是 ActiveMQ v5.16.2,它与码头服务器结合使用。 我看到很多链接指向在 jetty-realm.properties 文件中使用像 MD5:xxxxxx 这样的 MD5 哈希。

我们需要对此进行升级,以便用户身份验证使用 RSA 算法。

jetty-realm.properties 具有 Jetty org.eclipse.jetty.util.security.Credential 实现可以理解的条目。

Jetty 支持 CRYPT:MD5:OBF: 和纯文本。

Jetty 通过标准 java.util.ServiceLoader 支持可插入的 Credential 实现,用于 org.eclipse.jetty.util.security.CredentialProvider.

的任何实现

ActiveMQ does not have an implementation of CredentialProvider.

如果您需要 RSA: 支持,您必须自己编写 org.eclipse.jetty.util.security.CredentialProvider 的 RSA 实现来实现。