title: Configure SSL in jetty server using pfx file
body: <p>I have a question about configuring SSL in jetty server.</p>
  
  <p>I know we can use keystore and truststore to enable SSL in jetty server. But i have a <strong>pfx</strong> file. Can i use it directly instead of converting it into <strong>keystore</strong> and <strong>truststore</strong> jks files. </p>
  
  <p>Reference code:</p>
  
  <p><a href="http://www.programcreek.com/java-api-examples/index.php?api=org.eclipse.jetty.util.ssl.SslContextFactory" rel="nofollow noreferrer">http://www.programcreek.com/java-api-examples/index.php?api=org.eclipse.jetty.util.ssl.SslContextFactory</a></p>
  
  <p><a href="http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/examples/embedded/src/main/java/org/eclipse/jetty/embedded/LikeJettyXml.java" rel="nofollow noreferrer">http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/examples/embedded/src/main/java/org/eclipse/jetty/embedded/LikeJettyXml.java</a></p>