使用Playframework访问https网站报以下错误: java
Cause: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target ide
Cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
网站
正确的解决方案以下: ui
keytool -import -trustcacerts -keystore {JAVA_HOME}/jre/lib/security/cacerts -noprompt -alias -file {CORRECT_PATH}/what_ever.crt this
-Djavax.net.ssl.trustStore={JAVA_HOME}/jre/lib/security/cacerts .net
引用地址: ssl
http://stackoverflow.com/questions/27726968/how-to-use-play-ws-with-ssl get