title: SSL communication, how hard can it be?
body: <p>I have a Java main application running on my PC that can send XML data to a servelet and recieve XML data back.
  <a href="http://iamt.wisconsin.gov/IAM-WiEntUser/WiEntUserService?xml=" rel="nofollow noreferrer">http://iamt.wisconsin.gov/IAM-WiEntUser/WiEntUserService?xml=</a></p>
  
  <p>I can use <a href="https://iamt.wisconsin.gov/IAM-WiEntUser/WiEntUserService?xml=" rel="nofollow noreferrer">https://iamt.wisconsin.gov/IAM-WiEntUser/WiEntUserService?xml=</a> from IE and Firefox because I they allowed me to load the private certificate.</p>
  
  <p>I want to use https from the Java main application because some of the data is sensitive.  I get an IOException with MSG=unkown certificate.  Ok, That makes sense, Java does not know about the private certificate.</p>
  
  <p>I was hoping that it would be as simple as telling Java to trust the FireFox certificates.
  System.setProperty("javax.net.ssl.trustStore",
            "C:/Documents and Settings/kendajm/Application Data/Mozilla/Firefox/Profiles/6f8ggdi7.default/cert8.db" );
  But that gives an IOException with MSG=Invalid keystore format.</p>
  
  <p>SSL communication, how hard can it be?  I spent a good eight hours trying to track down how to do this.  It seems that is so easy that it is not documented or very difficult and no one has a good example.</p>
  
  <p>Help. </p>