title: How to use PEM file to create a SSL socket in Java?
body: <p><a href="https://stackoverflow.com/questions/722931/ssl-socket-php-code-needs-to-be-converted-to-java">See related question.</a></p>
  
  <p>I have a PEM file provided to me and was told that it will be needed in establishing a SSL socket that connects to a c++ server for some API calls. Does anyone know how I can read in the PEM file and connect? I was also given the parapharse password.</p>