Hey sachit ! even i am facing the same issue my server is not listening on 
the port for https but runs perfect on the localhost. Any insights on it ?

On Tuesday, January 26, 2016 at 1:51:00 PM UTC+5:30, Sanchit Khattry wrote:
>
> I am trying to set up SSL in my Dropwizard 
> <http://www.dropwizard.io/0.9.2/docs/> server. I have got my SSL from 
> GoDaddy and have received a couple of files from them namely:
>
>    1. gd_bundle-g2-g1.crt
>    2. b78*********.crt (basically a file named like a random string)
>    
> I have added the *gd_bundle-g2-g1.crt* certificate with alias *root* in 
> my keystore and have added the other one with my domain alias.
>
> My .yml configuration file looks like this: (I have just pasted the 
> relevant section of the .yml file)
>
>
> server:
>   applicationConnectors:
>   - type: http
>     port: 8080
>   - type: https
>     port: 8443
>     keyStorePath: keystore/myKeyStore.jks
>     keyStorePassword: "myPassword"
>     validateCerts: true
>
>   adminConnectors:
>   - type: http
>     port: 8081
>
>
> The problem is that whenever I am trying to launch my server I am 
> receiving the following error:
>
> java.lang.IllegalStateException: Unable to retrieve certificate chain
>
> When I set the *validateCerts* as false in the .yml above then, for 
> obvious reason, this error goes away but when I try to access the URL I 
> get: Connection closed error when trying to access the URL 
> <http://i.stack.imgur.com/ct1aP.png> 
> 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:
>
>    1. Am I handling the certificate files incorrectly?
>    2. Is there something missing in my .yml file that needs to be added 
>    or is there something wrong there?
>    3. Or is it something that I am missing from this picture altogether?
>
> Appreciate your help! :-)
>
> PS: I have asked the same question in stackoverflow 
> <http://stackoverflow.com/questions/35002780/setting-up-ssl-in-dropwizard> 
> and 
> followed the comment by Austin but even that didn't seem to work.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to