在哪里可以找到密钥库文件?
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是可能的。事实上 - 我们在我工作的地方就是这样做的。我们在 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.