java 建立tlsv1.2报错,在Java 1.4中使用TLSV1.2时没有此类算法异常

在Java 1.4中尝试连接只支持TLSv1.2的webservice时遇到问题。BouncyCastleProvider可能提供解决办法,但不直接支持SSLEngine。升级到Java 1.5及以上版本并使用bctls-jdk15on-157库及BouncyCastleJsseProvider可以成功实现TLSv1.1和TLSv1.2的支持。
摘要由CSDN通过智能技术生成

I am trying to hit a webservice which supports TLSv1.2. I am using Java 1.4. It does not support TLSv1.2.

Now someone told me that BC could solve my problem.

Though does it work with a SSLEngine as drop in replacement somehow?

Is this possible with BC?

What do I have to do to get a working SSLEngine (for use with TLSv1 in a

nonblocking io scenario) without such low restrictions on primesize for DH.

What I tried:

Security.addProvider(new BouncyCastleProvider());

This alone seems not to solve the problem.

So instead of

SSLContext.getInstance("TLSv1"); //which works alas only little DH keys.

I tried calling the following:

SSLContext.getInstance("TLSv1","BC");

SSLContext.getInstance("TLS","BC");

SSLContext.getInstance("TLSv1.2","BC"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值