HTTPs

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,
相关推荐
Lsetea13 小时前
Certbot webroot申请SSL证书总是404:Nginx挑战目录与路径映射检查
运维·nginx·https·ssl证书·certbot
山乐1913118 小时前
麒麟系统,安装Nginx并配置https证书
运维·nginx·https
tedcloud1231 天前
Docker Compose 部署 Uptime Kuma:配置 HTTPS、QQ 邮箱告警与数据备份
服务器·网络协议·ui·docker·容器·https·开源
嵌入式学习菌1 天前
HTTP/HTTPS、MQTT/MQTTS 区别
网络协议·http·https
2501_915106321 天前
抓包抓到乱码或压缩字节怎么解析,TraceEagle五种查看模式和一键解码
网络协议·计算机网络·网络安全·ios·adb·https·udp
zxanz13 天前
证书运维自动化,守住业务 HTTPS 底线
运维·https·自动化
Lsetea3 天前
Git访问HTTPS证书不受信任:用URL级sslCAInfo限定私有CA范围
git·https·开发工具·ssl证书·ca证书
2501_916007474 天前
抓包工具功能对比,TraceEagle、Charles、Fiddler、Wireshark、mitmproxy 差别
前端·网络协议·ios·adb·https·fiddler·wireshark
闲云自留地4 天前
K8s Ingress 全解:ingress-nginx 部署、域名路径路由、HTTPS 限流灰度一篇通
nginx·https·kubernetes
zxanz14 天前
国密 SM2 SSL 证书和国际证书怎么选,一文理清差异
https·ssl