在哪里可以找到密钥库文件?

发布于 2024-10-02 20:49:58 字数 319 浏览 1 评论 0原文

我使用 keytool 创建了一个密钥库,但问题是,我们正在远程使用 JDK(而且我在服务器上没有写入权限)。 我注意到 ant 有一个 keystore 属性,我想将其传递给 signjar 任务。

是否可以将密钥库添加到版本控制存储库中并从那里使用它? 例如,这样的事情:

<signjar jar="my.jar" alias="myAlias" 
    keyStore="path/to/keystore" storepass="somePass"/>

I created a keystore using keytool, but the thing is, we're using a JDK remotely ( and I don't have write priviledges on the server ).
I noticed that ant has a keystore attribute, and I would like to pass that along to the signjar task.

Is it possible to add the keystore into the version control repository, and use it from there?
For example, something like this:

<signjar jar="my.jar" alias="myAlias" 
    keyStore="path/to/keystore" storepass="somePass"/>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

一念一轮回 2024-10-09 20:49:58

是的,这是可能的。事实上 - 我们在我工作的地方就是这样做的。我们在 glassfish 网络域上有一个密钥库,我们通过它的 URL 对 jar 进行签名。

希望这有帮助。

Yes, this is possible. In fact - we do this where I work. We have a keystore on a glassfish web domain and we sign jars with it via the URL to it.

Hope this helps.

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