title: How can I resolve the error "certificate subject name does not match target host name"?
body: <pre><code>  curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer 90d2c018-73d1-324b-b121-a162cf870ac0' 'https://172.17.0.1:8243/V1.0.2/stock/getNA?name=te'
  </code></pre>
  <p>The terminal prompted</p>
  <blockquote>
  <p>&quot;curl: (51) SSL: certificate subject name (localhost) does not match target host name '172.17.0.1'
  &quot;</p>
  </blockquote>
  <p>However, after I changed the &quot;172.17.0.1&quot; to &quot;localhost&quot;, it worked and I got the result.</p>
  <p>Why? Is there a wrong configuration somewhere?
  Meanwhile, there isn't any log information in file <em>http_access.log</em>.</p>