Install mkcerts and run mkcert -install
and after it the following command:
mkcert -cert-file cert.pem -key-file key.pem 0.0.0.0 localhost 127.0.0.1 ::1 metax.csc.local 20.20.20.20
Move the cert.pem
and key.pem
to src/.certs
folder (create the folder if not present).
python manage.py runsslserver --certificate .certs/cert.pem --key .certs/key.pem 8008