title: Docker private registry | TLS certificate issue
body: <p>I've tried to follow the following <a href="https://docs.docker.com/registry/deploying/#get-a-certificate" rel="noreferrer">tutorial</a> to setup our own private registry (v2) on an AWS Centos machine.</p>
  
  <p>I've self signed a TLS certificate and placed it in /etc/docker/certs.d/MACHINE_STATIS_IP:5000/</p>
  
  <p>When trying to login the registry (docker login MACHINE_IP:5000) or push a tagged repository (MACHINE_IP:5000/ubuntu:latest) i get the following error :</p>
  
  <pre><code>Error response from daemon: Get https://MACHINE_IP:5000/v1/users/: x509: cannot validate certificate for MACHINE_IP because it doesn't contain any IP SANs
  </code></pre>
  
  <p>Tried to search for an answer for 2 days, however I couldn't find any.
  I've set the certificate CN (common name) to MACHINE_STATIC_IP:5000</p>