title: Force Firefox to allow auto signed certificate for localhost
body: <p>To use Gmail SMTP on a local project, I had to change the virtualhost domain name from <code>https://4-9-6-fr.wp-dev/</code> to <code>https://wp-4-9-6-fr.dev/</code> because Google API does not want <code>wp-dev</code>. I imagine <code>wp-dev</code> was considered as a domain and <code>4-9-6-fr</code> as a subdomain.</p>
  
  <p>My new problem is <code>.dev</code> is a good extension for Gmail but Firefox got this error :</p>
  
  <blockquote>
    <p>wp-4-9-6-fr.dev uses an invalid security certificate. The certificate is not safe because it is self-signed. The certificate is valid only for. Error Code : MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT</p>
  </blockquote>
  
  <p>I understand it is a security action but in my case it is a localhost project.</p>
  
  <p>What should I do to use https protocol on localhost / be compatible for Google API and gmail SMTP and be compatible for browsers as well ?</p>