title: Importing ssl certificates into glassfish (pfx)
body: <p>I am trying to import ssl certificates into glassfish, but I am unclear as to how this is done.</p>
  
  <ul>
  <li>I have two pfx files, let's call them cert1.pfx and cert2.pfx.</li>
  <li><p>Based on a following stackoverflow answer (<a href="https://stackoverflow.com/questions/4217107/how-to-convert-pfx-file-to-keystore-with-private-key">How to convert .pfx file to keystore with private key?</a>), I've generated two .jks files, cert1.jsk, and cert2.jks under my <em>domain-root</em>/config folder.. The commands I used were:</p>
  
  <pre><code>keytool -importkeystore -srckeystore cert1.pfx -srcstoretype pkcs12 -destkeystore cert1.jks -deststoretype JKS
  </code></pre>
  
  <p>and</p>
  
  <pre><code>keytool -importkeystore -srckeystore cert2.pfx -srcstoretype pkcs12 -destkeystore cert2.jks -deststoretype JKS
  </code></pre></li>
  <li><p>These certificates are now residing in the config folder, but I am unsure as to how to have glassfish actually read these keystores.</p></li>
  </ul>
  
  <p>Can someone tell what to do next with these? Is it something to do with keytool and -import?</p>