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,
相关推荐
赤月奇5 天前
https改为http
数据挖掘·https·ssl
Boxsc_midnight7 天前
【windows电脑浏览器直接访问虚拟机或云端openclaw的方法】一个不需要HTTPS的安全连接通道(基于SSH)
windows·安全·https·openclaw
学不完的7 天前
haproxy
linux·运维·https·负载均衡·haproxy
Web极客码8 天前
在WordPress中启用http2
https·wordpress
清清&9 天前
【网络】一文读懂HTTPS协议
网络·https·智能路由器
猫头虎10 天前
web开发常见问题解决方案大全:502/503 Bad Gateway/Connection reset/504 timed out/400 Bad Request/401 Unauthorized
运维·前端·nginx·http·https·gateway·openresty
无籽西瓜a11 天前
SSL/TLS工作流程以及HTTP与HTTPS详解
http·https·ssl
橙露15 天前
计算机网络核心:HTTP/HTTPS 协议原理与抓包分析实战
计算机网络·http·https
小同志0015 天前
⽹络原理-HTTP/HTTPS(一)
网络协议·http·https
游戏开发爱好者815 天前
完整教程:App上架苹果App Store全流程指南
android·ios·小程序·https·uni-app·iphone·webview