title: Certificate for <localhost> doesn't match any of the subject alternative names
body: <p><strong>The Error</strong>:</p>
  <pre><code>javax.net.ssl.SSLException: Certificate for &lt;localhost&gt; doesn't match any of the subject alternative names: [xxxxxxx.xxx.xxxxxx.xxx]
  </code></pre>
  <p>I have a Spring Boot App running in my <code>localhost</code>. I also have a tunnel <code>ssh</code> via putty to a server.</p>
  <p>Things I have done:</p>
  <ul>
  <li>I manually created/imported keys/certificates of all ways.</li>
  <li>I used -ext from keytool to add the dns addr and the localhost to SAN.</li>
  <li>I also used a    <a href="https://github.com/escline/InstallCert" rel="noreferrer">openSource</a> java file to install the cert.</li>
  <li>I changed the hosts    files to: 127.0.0.1 xxx.xxx.xxxxxxx.xxx (if I ping the dns name it responds to the localhost address)</li>
  <li>I used the VM Arguments -Djavax.net.debug=ssl to check if the certs are loading properly.</li>
  </ul>
  <p>What am I missing? BTW, I'm also using a VPN.</p>