如何以编程方式利用keytool? [英] How to utilize keytool programmatically?
问题描述
在我看来,几乎没有任何好的工具可以帮助Webapp部署者保护其环境.我感觉到很多部署方面的麻烦,因为管理员没有正确地使用工具来忽略错综复杂的TLS/SSL.我曾经很幸运地看到,无论是在Websphere还是weblogic中,对于任何级别的管理员而言,我都能看到一个非常直观,非常好的UI管理,但是在开源社区中,今天没有类似的东西可用.我希望有一天能为tomcat整理一些东西,所以我正在尝试并弄清楚如何不重新发明"轮子,但是似乎我无法掌握keytool的源代码. ..我认为班级本身是最终的……所以扩展它是不可能的.有谁知道为什么SUN很难做到良好和直观的安全性?
真正的问题:您是否知道有人可以在哪里以编程方式充分利用keytool?
您可以使用Java的KeyStore
api以编程方式执行keytool
的操作.多年来,KeyStore
api和keytool
命令行工具都得到了发展.您可以在此处参考KeyStore
api文档:
如果您对 Real Question: Are there ways that you know of where someone can programmatically utilize keytool to its fullest? You can use java's If you are curious on how 这篇关于如何以编程方式利用keytool?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!keytool
的操作方式感到好奇,可以通过Google的快速搜索找到
KeyStore
api to do what keytool
does, programmatically. Over the years both the KeyStore
api and keytool
command line tool have evolved. You can refer to the KeyStore
api docs here:keytool
does it, a quick google search yielded this link, which contains its code.