title: How do you setup SSL with Grails?
body: <p>How do you setup SSL with Grails? We have our signed certificate from our provider, and have tried creating a keystore under .grails/1.3.7/ssl/keystore. With just putting our key in, we start grails and get:</p>
  
  <pre><code>Caused by: javax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled.
         at sun.security.ssl.SSLServerSocketImpl.checkEnabledSuites(SSLServerSocketImpl.java:327)
         at sun.security.ssl.SSLServerSocketImpl.accept(SSLServerSocketImpl.java:272)
         at org.apache.tomcat.util.net.jsse.JSSESocketFactory.checkConfig(JSSESocketFactory.java:742)
  </code></pre>
  
  <p>Maybe we have to import the .crt file with a different command? I used:</p>
  
  <pre><code>keytool -import -v -trustcacerts -alias riseup.org.nz -file /etc/ssl/telethon/telethon.crt
  </code></pre>
  
  <p>When I use and alias other than riseup.org.nz, it complains the alias doesn't match the crt.</p>
  
  <p>After running the command, it does ask me if I trust the information, which makes me think of:</p>
  
  <blockquote>
    <p>Note: it is not required that you execute a -printcert command prior to importing a certificate, since before adding a certificate to the list of trusted certificates in the keystore, the -import command prints out the certificate information and prompts you to verify it. </p>
  </blockquote>
  
  <p>from: <a href="http://download.oracle.com/javase/1.3/docs/tooldocs/win32/keytool.html" rel="nofollow">http://download.oracle.com/javase/1.3/docs/tooldocs/win32/keytool.html</a></p>