首页 > 代码库 > javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

SSL握手失败:用JDK1.8做发邮件的功能遇到这种问题
处理方式是:
将目录 %JAVA_HOME%\...\jre\lib\security里的local_policy.jar,US_export_policy.jar两个包替换成1.7版本的
下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

原因:可能是JDK1.8 处理SSL安全机制有问题

javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure