1. 安裝 Chocolatey
1.1 CMD

1.2 檢查
choco -version
2. 安裝 MKCERT
choco install mkcert
default install path

3. 頒布證書
3.1 檢查 mkcert 命令
Get-command 檢查window的命令
> Get-Command mkcert

Powershell 中
mkcert localhost 127.0.0.1 192.168.1.167 weberp.abc.com abc.com

4. Vue3 配置
443是Https default 端口,與Http 80 類似。
server: {
https: {
key: fs.readFileSync(path.resolve(__dirname, 'cert/localhost+3-key.pem')),
cert: fs.readFileSync(path.resolve(__dirname, 'cert/localhost+3.pem'))
},
open: true,
port: 443,
host: '0.0.0.0',
cors: true,
