https://github.com/FiloSottile/mkcert mkcert — это простой инструмент для создания локально доверенных сертификатов для разработки. Он не требует настройки. $ mkcert -install Created a new local CA 💥 The local CA is now installed in the system trust store! ⚡️ The local CA is now installed in the Firefox trust store (requires browser restart)! 🦊

$ mkcert example.com "*.example.com" example.test localhost 127.0.0.1 ::1

Created a new certificate valid for the following names 📜

  • "example.com"
  • "*.example.com"
  • "example.test"
  • "localhost"
  • "127.0.0.1"
  • "::1"

The certificate is at "./example.com+5.pem" and the key at "./example.com+5-key.pem" ✅