(已解决)SunCertPathBuilderException: unable to find valid certification path to requested target

1.获得 InstallCert.java 文件

  http://code.google.com/p/java-use-examples/source/browse/trunk/src/com/aw/ad/util/InstallCert.java

2. 编译  InstallCert.java 
    javac InstallCert.java

3.运行 java InstallCert localhost

4.生成jssecacerts  文件

5.  复制 “jssecacerts” 文件到 “$JAVA_HOME\jre\lib\security” 

6.  完成
  


你可能感兴趣的:(java,Security,Path)