Its very simple. If you want to enable HTTPS support in your web app, just do the following:
- Generate a Java KeyStore(.jks) file using a linux tool called keytool.
- In the ring map of your
project.clj
file, add the following:{ :ssl? true :ssl-port 8443 :keystore "path to the jks file" :key-password "the keystore password" }
- Fire up the server. Now your web app is HTTPS enabled.
I had a similar problem while I was trying to test my Sign-In using Social Media code which obviously had to authenticate over HTTPS and this did the trick for me.