title: what is keyAlias="aaaa" in tomcat server.xml file
body: <p>I have SSL certificate purchased and installed into tomcat. I created <code>tomcat.keystore</code> file which I include in <code>server.xml</code> file also put password but not able to understand <code>keyAlias="aaa"</code>. If I put keyAlias="localhost" then I get exception given below. And if I remove <code>keyAlias</code> itself from the Connector tag then I get another exception which is given below next <code>localhost</code> exception.</p>
  
  <pre><code>java.io.IOException: Alias name localhost does not identify a key entry
      at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:588)
      at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeyManagers(JSSESocketFactory.java:526)
      at org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.java:471)
      at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:218)
      at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
      at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:649)
  </code></pre>
  
  <p>Here is exception after removing <code>keyAlias</code> itself from the <code>Connector</code> tag.</p>
  
  <pre><code>Aug 08, 2015 2:39:18 PM org.apache.catalina.core.StandardService initInternal
  SEVERE: Failed to initialize connector [Connector[HTTP/1.1-443]]
  org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-443]]
      at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
      at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
      at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
      at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:821)
      at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
      at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
      at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
  Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
      at org.apache.catalina.connector.Connector.initInternal(Connector.java:980)
      at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
      ... 12 more
  Caused by: java.net.BindException: Address already in use &lt;null&gt;:443
      at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:413)
      at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:649)
      at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
      at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)
      at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
      ... 13 more
  Caused by: java.net.BindException: Address already in use
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
      at java.net.ServerSocket.bind(ServerSocket.java:376)
      at java.net.ServerSocket.&lt;init&gt;(ServerSocket.java:237)
      at java.net.ServerSocket.&lt;init&gt;(ServerSocket.java:181)
      at javax.net.ssl.SSLServerSocket.&lt;init&gt;(SSLServerSocket.java:136)
      at sun.security.ssl.SSLServerSocketImpl.&lt;init&gt;(SSLServerSocketImpl.java:107)
      at sun.security.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.java:84)
      at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:219)
      at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:400)
      ... 17 more
  </code></pre>
  
  <p>Following is the content of <code>server.xml</code> file.</p>
  
  <pre><code>&lt;Connector port="443" SSLEnabled="true" protocol="org.apache.coyote.http11.Http11Protocol"
             maxThreads="150" scheme="https" secure="true"
             clientAuth="false" sslProtocol="TLS"
             keystoreFile="tomcat.keystore"
             keystorePass="test" keyAlias="aaa"/&gt;
  </code></pre>
  
  <p>What is that <code>keyAlias</code> ? Why am I getting exception after removing it which is Binding exception ?</p>