title: Using New-SelfSignedCertificate for wildcard certificates
body: <p>I have found <a href="https://stackoverflow.com/a/19446469/2119562">this</a> answer, but it doesn't seem to work when trying to create a wildcard certificate. </p>
  
  <p>I have taken the following steps: </p>
  
  <ol>
  <li>Added a certificate to my server with the Powershell command.</li>
  </ol>
  
  <p><code>New-SelfSignedCertificate -DnsName myhostname01,*.myhostname01 -CertStoreLocation Cert:\LocalMachine\My</code>
  (I slightly censored the URL to avoid potentially unsafe situations). </p>
  
  <ol start="2">
  <li><p>Next, I used the SSL certificate in a binding on my IIS server. </p></li>
  <li><p>I visited the page in Chrome. As expected, the certificate is marked unsafe. </p></li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/U4nz6.png" rel="noreferrer"><img src="https://i.stack.imgur.com/U4nz6.png" alt="enter image description here"></a></p>
  
  <ol start="4">
  <li><p>I saved a local copy of the certificate, and manually added a copy of of the certificate to my Chrome trusted CA's. However, the certificate is still not recognized:</p>
  
  <p><a href="https://i.stack.imgur.com/B8sXB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/B8sXB.png" alt="enter image description here"></a></p></li>
  <li><p>The details of the certificate look like this:</p></li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/0IFXV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0IFXV.png" alt="enter image description here"></a></p>
  
  <p>Now, the certificates and URL I am visiting and have set up in my hosts file are all the same. There are no spelling errors. My question: am I using New-SelfSignedCertificate wrong? Or am I doing something wrong somewhere else?</p>