Can’t get chrome to trust my self signed ssl certificate

  Kiến thức lập trình


  • I try to develop a ServiceWorker for my Website
  • The ServiceWorker registration fails because of my invalid (self signed) cert
  • The url I use locally is https://mypage.local

What I tryed

  • starting chrome with flags like –ignore-certificate-errors –unsafely-treat-insecure-origin-as-secure=https://mypage.local/ –allow-insecure-localhost
  • create a root CA and install it as trusted CA in my OS (windows)
  • create a new server cert and use it for the local website (the new cert is delivered)
  • Firefox tells me SSL_ERROR_BAD_CERT_DOMAIN. I added SAN entries in addition to the CN to the cert
  • I verified my cert via and the fields are correct

The cert is still not trusted, I still get the SSL_ERROR_BAD_CERT_DOMAIN in Firefox

Any idea what I still do wrong or how I can debug my issue further?