Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.security.cert.CertificateParsingException: java.io.IOExceptiion: insufficient data  RSS feed

 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello All,

I am trying to load a Keystore java object from a keystore file.  It works fine from a java standalone.  From a java servlet, it throws the following exception:

java.security.cert.CertificateParsingException: java.io.IOException: insufficient data.

The code from the standalone java app. is:


The code from the servlet is:



Any help would be greatly appreciated -- thanks!

-Ravi





 
Ravi Danum
Ranch Hand
Posts: 154
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I ended up storing the certificates outside the web application area, and used FileInputStream to access them.  This worked.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!