title: Self-signed wilcard certificate not working for Firefox
body: <p>Generate self-signed <code>root certificate</code> using <code>makecert.exe</code> and imported in <code>Trusted Root Certification Authorities</code>.</p>
  
  <p>Since, Mozilla Firefox <a href="https://wiki.mozilla.org/CA:IncludedCAs" rel="nofollow noreferrer">has it own list of Certification Authority (CA) certificates</a>,
   imported self-signed certificate into Firefox's Authority certificates list.</p>
  
  <p>Generate derived certificate with <code>CN=*.test.com</code> </p>
  
  <p>Setup proxy server which uses self-signed certificate. </p>
  
  <p>Browsing <code>something.test.com</code> with <code>Internet Explorer</code> and <code>Chrome</code>, certificate is accepted and no security issue warning is shown. Firefox shows error message </p>
  
  <blockquote>
    <p>'something.test.com uses an invalid security certificate. 
    The certificate is only valid for *.test.com 
    (Error code: ssl_error_bad_cert_domain)'.</p>
  </blockquote>
  
  <p>Problem seems to be about using wildcard in <code>CN</code>, because if i generate derived certificate with <code>CN=something.test.com</code> no error is shown for none of the browsers.</p>