title: Hostname localhost not verified
body: <p>I have generated a Java Keystore File for TLS communication using below command:</p>
  <pre><code>keytool -genkeypair -alias presto -keyalg RSA -keystore keystore.jks
  
  Enter keystore password:  
  Re-enter new password: 
  What is your first and last name?
    [Unknown]:  presto-coordinator.example.com
  What is the name of your organizational unit?
    [Unknown]:  
  What is the name of your organization?
    [Unknown]:  
  What is the name of your City or Locality?
    [Unknown]:  
  What is the name of your State or Province?
    [Unknown]:  
  What is the two-letter country code for this unit?
    [Unknown]:  
  Is CN=presto-coordinator.example.com, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?
    [no]:  yes
  </code></pre>
  <p>While doing https calls i am getting this error:</p>
  <pre><code>Error running command: javax.net.ssl.SSLPeerUnverifiedException: Hostname localhost not verified:
      certificate: sha256/yowvqYOtr5pERHGb2zWsD4haTvCk2NFbSDkqkeB5boY=
      DN: CN=presto-coordinator.example.com, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown
      subjectAltNames: []
  </code></pre>
  <p>How to verify my localhost ?</p>