title: Why WSO2 API Manager gives Hostname verification failed while getting the token?
body: <p>I have one WSO2 Identity server running on docker container and My API-Manager is configured to use it as key manager. API Manager is also running on docker.</p>
  <p>When Iam Trying to get a token in Postman, I call this <code>https://myhost.com:8243/token?grant_type=client_credentials</code> with base64 encoded &quot;client_id:secret&quot; it gives me this exception:</p>
  <pre><code>[2021-04-27 17:13:21,704] ERROR - TargetHandler I/O error: Host name verification failed for host : is.com javax.net.ssl.SSLException: Host name verification failed for host : is.com
  </code></pre>
  <p>Also the [apim.key_manager] is configured like this:</p>
  <pre><code>[apim.key_manager]
  service_url = &quot;https://is.com:9442/services/&quot;
  username = &quot;$ref{super_admin.username}&quot;
  password = &quot;$ref{super_admin.password}&quot;
  type = &quot;WSO2-IS&quot;
  </code></pre>
  <p>&quot;is.com&quot; is the domain for my identity server container.</p>
  <p>I dont know why is this happening and HostNameVerification is disabled in apim.</p>
  <p>How can I fix it?</p>
  <p>Thank you.</p>