所需套件
win 需先安裝 Chocolatey
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
需要在系統管理員下
mkcert install
mkcert [your domain]
就會生成 ssl
python manage.py runsslserver --certificate .\127.0.0.1.pem --key .\127.0.0.1-key.pem