如何在 jboss 7.0.0.GA 中启用 ssl

how to enable ssl in jboss 7.0.0.GA

我想为 ejb 调用实现 SSL。我尝试通过以下 link,但它没有按预期工作。

enable SSl in jboss

如何在 Jboss 7.0.0.GA 中为 EJB 调用启用 SSL。

试试这个 WildFly 10 教程 - http://middlewaremagic.com/jboss/?p=2783

您需要在服务器配置中更改的是:

  • 在 SecurityRealm 中添加 SSL 作为您的身份
  • 在 undertow 子系统中配置 HTTPs 侦听器
  • 在将使用 https 的远程子系统中配置连接器
  • 从 ejb3 子系统引用新的远程处理连接器

示例 CLI:

/core-service=management/security-realm=ApplicationRealm/server-identity=ssl:add(keystore-path=server.keystore, keystore-relative-to=jboss.server.config.dir, keystore-password=123456)
reload
/subsystem=undertow/server=default-server/https-listener=https:add(socket-binding=https, security-realm=ApplicationRealm)
/subsystem=remoting/http-connector=https-remoting-connector:add(connector-ref=https, sasl-protocol=remote, security-realm=ApplicationRealm)
/subsystem=ejb3/service=remote:write-attribute(name=connector-ref,value=https-remoting-connector)
reload

那么您应该在 EJB 客户端配置中使用正确的端口 (8443)。