Webservices客户端和SSL [英] Webservices client and ssl

查看:57
本文介绍了Webservices客户端和SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Java客户端,该客户端现在使用Http协议调用Web服务.当我尝试使用Https协议时,我不断收到此错误java.io.IOException:DerInputStream.getLength():lengthTag = 127,太大.

I have a Java client that calls a web service at the moment using the Http protocol. When i try to use the Https protocol i keep getting this error java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big.

有什么想法可能会发生什么?谢谢达米安(Damien)

Any ideas what could be up? Thanks Damien

推荐答案

由于美国对加密技术的出口规定,您不能开箱即用使用强加密.您的错误看起来像您(或您的框架)正在尝试使用强加密,而框架的其他部分则不允许这样做.

Due to american export regulations in encryption technologies, you can't use strong encryption out of the box. Your error looks like you (or your framework) is trying to use strong encryption, and other parts of the framework is not allowing it.

可以在此处.好的加密货币提供者是 BouncyCastle .需要阅读一些内容,但使其工作起来并不难.

A discussion of a case that looks similar to yours can be found here. A good crypto provider is BouncyCastle. Takes some reading, but it's not that hard to make it work.

祝你好运

这篇关于Webservices客户端和SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆