在Wildfly凭证商店中添加带有特殊字符的密码
我正在配置Wildfly中的[第二个]数据源,并且似乎很难将密码添加到凭证存储中。我可以使用Clear-Text密码选项创建数据源(并连接);但是,当我将密码添加到并尝试使用凭据存储时,我会收到密码身份验证错误。密码具有以下字符:'!?'。我知道'!'和 '?'不使用凭据商店时应逃脱。我尝试使用或不逃脱字符的情况下使用“”和{},但似乎没有任何作用。
I am configuring a [second] datasource in WildFly and I seem to be having trouble adding the password to the credential store. I can create the datasource (and connect) using the clear-text password option; but when I add the password to and attempt to use the credential store I get a password authentication error. The password has the following characters: '!?'. I know the '!' and '?' should be escaped when not using the credential store. I have tried using "" and {} both with and without escaping the characters and nothing appears to work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除其他特殊字符外,我还需要在密码中逃脱“ \”字符。我的问题显然是我对证书商店进行的更新直到重新加载凭证商店后才被使用。我通过编写快速休息点来抓住凭据存储并返回存储的(纯文本)密码以获取特定别名,从而发现了这一点。
In addition to the other special characters, I did also need to escape the '\' characters in the password. My issue apparently was the updates I was making to the credential store were not being used until the credential store was reloaded. I discovered this by writing a quick REST end-point to grab the credential store and return the stored (plain text) password for a specific alias.