title: Wildfly 11 configure (enable) SSL certificate
body: <p>I have purchased an SSL online and got the following files:</p>
  <ul>
  <li>mydomain.ca file</li>
  <li>mydomain.crt file</li>
  <li>mydomain.csr file</li>
  <li>mydomain.key file</li>
  <li>mydomain.pem file</li>
  <li>mydomain.pkcs file</li>
  </ul>
  <p>I searched for about an hour for tutorials on how to configure SSL on <em><strong>Wildfly 11</strong></em>.
  But in every tutorial they are generating self-signed certificates (which is not helpful in my case).</p>
  <p>They use a tool called &quot;<em><strong>keytool</strong></em>&quot; to create &quot;<em><strong>.keystore</strong></em>&quot; files.</p>
  <p>How can I create a <em><strong>.keystore</strong></em> file using my purchased certificate files ?</p>
  <p>And how can I properly set up my <code>standalone.xml</code> (I am using standalone mode) to enable SSL ?</p>
  <p><strong>EDIT</strong></p>
  <p>Finally managed to generate the .keystore:</p>
  <p><em>1. Generate PKS12 from PEM (contains key + certs)</em></p>
  <pre><code>openssl pkcs12 -export -in mydmain.pem -out mydmain.pfx -passout pass:myPass
  </code></pre>
  <p><em>2. Generate KEYSTORE</em></p>
  <pre><code>keytool -importkeystore -deststorepass somePass -destkeypass somePass -destkeystore mydmain.keystore -srckeystore mydmain.pfx -srcstoretype PKCS12 -srcstorepass myPass
  </code></pre>