title: Getting a SSL connection to work with STUNNEL/Win32
body: <p>The service I need to connect to has provided me three files and I'm trying to figure out what I need to create the Cert=xxx.PEM file that STUNNEL needs</p>
  
  <p>I have a "keystore.jks" file. Dumping that with keytool says it's a "Private key entry"</p>
  
  <p>I have a "truststore.jks" file. Dumping that says it's a "trusted certificate entry". The alias is "server"</p>
  
  <p>I also have a "xyz.cer" file. That seems to be a X.509 certificate</p>
  
  <p>I've got OPENSSL and a Java program  called "KeytoolUI". </p>
  
  <p>Bottom line is I have a bunch of files and tools and with not much knowledge of SSL I feel like I can't see the wood for the trees. Do I need all those files? The existing PEM files I have for other services just have a "Certificate" section and a "RSA Private key" section.</p>
  
  <p>Any advice appreciated. Thanks!</p>