Generate SSL certificates To set up HTTPS on localhost, you'll need SSL certificates. You can generate self-signed certificates using mkcert. Once generated, put them into this folder (cert.pem and key.pem).