javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites
java 远程调用ssl的接口报这个错误
找到jdk的安装目录:which java
进入 cd ~/jdk1.8.0/jre/lib/security
找到这个文件java.security编辑 vim java.security
编辑前:
编辑后:
:wq 保存之后,重启虚拟机还是报javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites
编辑服务器的环境变量 vim /etc/profile
在后面添加:
export JAVA_HOME=~/jdk1.8.0
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
使配置生效: source /etc/profile
重启虚拟机,调用success。
mark 一下
项目合作QQ:1563983800



