在Wildfly凭证商店中添加带有特殊字符的密码

发布于 2025-01-29 17:23:00 字数 183 浏览 4 评论 0原文

我正在配置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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

雪若未夕 2025-02-05 17:23:00

除其他特殊字符外,我还需要在密码中逃脱“ \”字符。我的问题显然是我对证书商店进行的更新直到重新加载凭证商店后才被使用。我通过编写快速休息点来抓住凭据存储并返回存储的(纯文本)密码以获取特定别名,从而发现了这一点。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文