Is it possible to import all contents of cacerts into a jssecacerts file?

橙三吉。 提交于 2019-12-10 21:35:57

问题


Using keytool , or some other method, is there an easy way to import all contents of cacerts into a jssecacerts file?

Basically, I want to define my own jssecacerts but I want that jssecacerts to also contain all the trusted entries of the cacerts file. The reason for this is that I believe that when the jssecacerts file exists, the cacerts file contents are ignored.


回答1:


I figured it out:

%JRE_HOME%\bin\keytool.exe -importkeystore -destkeystore jssecacerts 
-deststoretype jks -srcstorepass changeit -deststorepass changeit 
-v -noprompt -srckeystore %JRE_HOME%\lib\security\cacerts


来源:https://stackoverflow.com/questions/7492220/is-it-possible-to-import-all-contents-of-cacerts-into-a-jssecacerts-file

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