Damien
Damien

Reputation: 4121

Webservices client and ssl

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

Upvotes: 0

Views: 1095

Answers (3)

Sanjay
Sanjay

Reputation:

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

Upvotes: 0

Tnilsson
Tnilsson

Reputation: 2200

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,

Upvotes: 2

Alexander
Alexander

Reputation: 9370

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

Upvotes: 0

Related Questions