• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem accessing keystore: DerInputStream.getLength(): lengthTag=127, too

 
Siddhesh S Jog
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am new to working with secure webservices.
I have a client for secure webservice. The client itself is running from app server. The stubs were generated using Rational application developer with target environment as Apache AXIS.

The truststore is a PKCS store.

I have set following properties.

System.setProperty("com.ibm.ssl.keyStoreType", "PKCS12");
System.setProperty("javax.net.ssl.keyStoreType", "PKCS12");

System.setProperty("com.ibm.ssl.trustStore", sslProps.getProperty("com.ibm.ssl.trustStore"));
System.setProperty("javax.net.ssl.trustStore", sslProps.getProperty("com.ibm.ssl.trustStore"));

System.setProperty("com.ibm.ssl.trustStorePassword",sslProps.getProperty("com.ibm.ssl.trustStorePassword"));
System.setProperty("javax.net.ssl.trustStorePassword",sslProps.getProperty("com.ibm.ssl.trustStorePassword"));

Am also setting the properties:

java.security.Security.setProperty("ssl.SocketFactory.provider", "com.ibm.jsse2.SSLSocketFactoryImpl");
java.security.Security.setProperty("ssl.ServerSocketFactory.provider", "com.ibm.jsse2.SSLServerSocketFactoryImpl");

sslProps is an object ot the NodeDefaultSSLConfiguration.

The truststore is a PKCS12 truststore. But i keep getting the exception:

22/08/11 12:33:49:069 CEST 00000024 SystemErr R AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Default SSL context init failed: IBMKeyManager: Problem accessing key store java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Default SSL context init failed: IBMKeyManager: Problem accessing key store java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big.
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:5)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)

Can someone tell me what is wrong with my client?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!