[软件设计/软件工程] 支持 SSL 的 Artemis ActiveMQ 配置

[复制链接]
发表于 2022-5-4 13:50:25
问题
我想用 SSL 设置 Artemis

我的 etc/bootstrap.xml 文件如下所示:
  1. <broker xmlns="http://activemq.org/schema">
  2.    <web bind="https://0.0.0.0:8161" path="web" keystorePath="keystore.p12" keystorePassword="123" truststorePath="trusstore.p12" truststorePassword="123">
  3.       <app url="activemq-branding" war="activemq-branding.war"/>
  4.       <app url="artemis-plugin" war="artemis-plugin.war"/>
  5.       <app url="console" war="console.war"/>
  6.    </web>
  7. </broker>
复制代码

我确实喜欢它写在文档中,但是当我运行 artemis 服务时,我得到一个错误:
  1. javax.xml.bind.UnmarshalException
  2. - with linked exception:
  3. [org.xml.sax.SAXParseException; lineNumber: 28; columnNumber: 188; cvc-complex-type.3.2.2: Attribute 'keystorePath' is not allowed to appear in element 'web'.]
复制代码

我不明白我做错了什么?

回答
我使用以下方法修复了此错误:keystrepath、keystrepassword、trustStorePath 和 trustStorePassword。





上一篇:双百分号 (%%) 是什么意思?
下一篇:使用底部选项卡导航器时不显示标题

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表