title: vertx HTTPS (SSL/TLS) server does not work. I cannot access https://localhost
body: <p>I have created HTTPS server in <code>vert.x</code>.</p>
  
  <pre class="lang-java prettyprint-override"><code>vertx.createHttpServer(
      new HttpServerOptions()
          .setSsl(true)
          .setKeyStoreOptions(new JksOptions()
              .setPath("path/to/keystore")
              .setPassword("password")
          )
  ).requestHandler( (HttpServerRequest req) -&gt; {
      System.out.println("Access.");
      req.response().putHeader("Content-Type", "text/html; charset=utf-8");
      req.response().end("Hello world!");
      // ...
  }).listen(80, "localhost");
  </code></pre>
  
  <p>I have created keystore with <code>keytool</code>.</p>
  
  <pre><code>keytool -genkeypair -keystore keystore -storetype jks
  </code></pre>
  
  <p>I have succeeded in deploying verticle. But the server does not response.</p>
  
  <p>Access to <a href="https://localhost" rel="nofollow noreferrer">https://localhost</a> gives nothing. Even the log is not printed.</p>
  
  <p>What is wrong?</p>
  
  <p>I have tried some options like below.</p>
  
  <pre class="lang-java prettyprint-override"><code>vertx.createHttpServer(
      new HttpServerOptions()
          .setSsl(true)
          .setKeyStoreOptions(new JksOptions()
              .setPath("path/to/keystore")
              .setPassword("password")
          )
          // .setUseAlpn(true)
          // .setTrustOptions(new JksOptions()
          //  .setPath("C:/Recoeve/keystore")
          //  .setPassword("Xs41Kipid$ps15")
          // )
          // .setClientAuthRequired(false)
          // .setClientAuth(ClientAuth.NONE)
          // .addEnabledSecureTransportProtocol(TCPSSLOptions.DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS.get(1))
          // .addEnabledSecureTransportProtocol("TLSv1.3")
          // .setEnabledSecureTransportProtocols(TCPSSLOptions.DEFAULT_ENABLED_SECURE_TRANSPORT_PROTOCOLS)
  ).requestHandler( (HttpServerRequest req) -&gt; {
      // ...
  }).listen(80, "localhost");
  </code></pre>
  
  <p>But the code gives runtime exception.</p>