全球主机交流论坛

标题: 关于mkcert在windows下面Firefox支持 [打印本页]

作者: 金关村村长    时间: 2022-5-5 00:49
标题: 关于mkcert在windows下面Firefox支持
本帖最后由 金关村村长 于 2022-5-12 15:23 编辑

mkcert对于我们想在本地127.0.0.1测试https来说很方便

https://github.com/FiloSottile/mkcert

直接releases里面找到并下载当前版本的
  1. windows-amd64.exe
复制代码


然后把exe改个名字改成mkcert.exe  命令行下来到exe所在目录

执行


  1. .\mkcert.exe --install

  2. .\mkcert.exe 127.0.0.1

复制代码
就行

这个时候edge和chrome的支持都没有问题

Firefox要手动打开  about:config

然后把 security.enterprise_roots.enabled 改为true

这样访问https://127.0.0.1的时候Firefox就不会提示风险了
作者: iks    时间: 2022-5-5 01:08
因为 FireFox 默认使用 Mozilla 根证书库而非 Windows 证书存储




欢迎光临 全球主机交流论坛 (https://hostloc-workers.ikyomon.com/) Powered by Discuz! X3.4