Setting up SSL in Dropwizard
<p><br/>
I am trying to set up SSL in my <a href="http://www.dropwizard.io/0.9.2/docs/" rel="noreferrer">Dropwizard</a> server. I have got my SSL from GoDaddy and have received a couple of files from them namely:</p>

<ol>
<li>gd_bundle-g2-g1.crt</li>
<li>b78*********.crt (basically a file named like a random string)</li>
</ol>

<p>I have added the <em>gd_bundle-g2-g1.crt</em> certificate with alias <em>root</em> in my keystore and have added the other one with my domain alias.</p>

<p>My .yml configuration file looks like this: (I have just pasted the relevant section of the .yml file)</p>

<pre><code>server:
  applicationConnectors:
  - type: http
    port: 8080
  - type: https
    port: 8443
    keyStorePath: keystore/myKeyStore.jks
    keyStorePassword: "myPassword"
    validateCerts: true

  adminConnectors:
  - type: http
    port: 8081
</code></pre>

<p>The problem is that whenever I am trying to launch my server I am receiving the following error:<br/></p>

<pre><code>java.lang.IllegalStateException: Unable to retrieve certificate chain
</code></pre>

<p>When I set the <em>validateCerts</em> as false in the .yml above then, for obvious reason, this error goes away but when I try to access the URL I get:
<a href="http://i.stack.imgur.com/ct1aP.png" rel="noreferrer">Connection closed error when trying to access the URL</a>
<br/>I seem to be stuck real bad. My server is working perfectly with http but https just doesn't work! :(
Given my end goal of making https work and my current scenario, I have the following questions:<br/></p>

<ol>
<li>Am I handling the certificate files incorrectly?</li>
<li>Is there something missing in my .yml file that needs to be added or is there something wrong there?</li>
<li>Or is it something that I am missing from this picture altogether?</li>
</ol>

<p>Appreciate your help.</p>