How to utilize keytool programmatically?

混江龙づ霸主 提交于 2019-12-06 14:06:42

You can use java's 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:

Java 7 KeyStore

Java 8 KeyStore

Java 9 KeyStore

If you are curious on how keytool does it, a quick google search yielded this link, which contains its code.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!