1.運行目錄 git bash here openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem 2.填寫信息 image.png 3.執(zhí)行 https-server -S 或 http-server -S -C cert.pem -o -p 80 # 默認開啟8080