HTTP时出现:No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

HTTP出现:No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

原因:

当我们进行HTTP发送请求时,有可能出现当前错误,又有很多中可能

1、服务器(tomcat)没有对应的HTTP协议

2、JDK的没有允许对应的HTTP加密方式

HTTP时出现:No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

解决:

找到Java的java.security配置文件,linux的默认路径在/usr/lib/jvm/java-1.8.0/jre/lib/security下,这个需要看你的jre的安装路径了,然后找到JDK配置中禁用的HTTP配置-->jdk.tls.disabledAlgorithms删除掉你准备要用的HTTP加密算法,然后重启服务就可以了
HTTP时出现:No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

上一篇:No appropriate protocol (protocol is disabled or cipher suites are inappropriate) 解决办法


下一篇:分享一个工具方法:日期格式化 & 日期转化,用法与java类SimpleDateFormat类似