Webservices client and ssl

浪子不回头ぞ 提交于 2019-12-25 03:35:25

问题


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.

Any ideas what could be up? Thanks Damien


回答1:


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.

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.

Good luck,




回答2:


Are you sure you are connecting your HTTPS client to the server port that talks over HTTPS (TLS/SSL) rather than HTTP?




回答3:


YOu have to pass the keystore type from the client. This error should go then.



来源:https://stackoverflow.com/questions/132498/webservices-client-and-ssl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!