mkcert

简介: mkcert

Ubuntu 18mkcerthttps

mkcert is a simple tool for making locally-trusted development certificates. It requires no configuration

install Linuxbrew

sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"

test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profileecho "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile

$ brew --version
Homebrew 2.1.11
Homebrew/linuxbrew-core (git revision 0c03; last commit 2019-09-16)

docs.brew.sh/Homebrew-on…

install mkcert

brew install mkcert

$ brew --version
Homebrew 2.1.11
Homebrew/linuxbrew-core (git revision 0c03; last commit 2019-09-16)
$ brew install mkcert
==> Downloading https://linuxbrew.bintray.com/bottles/mkcert-1.4.0.x86_64_linux.
==> Downloading from https://akamai.bintray.com/a4/a40257c8cc9547ab98595a907e3f2
######################################################################## 100.0%
==> Pouring mkcert-1.4.0.x86_64_linux.bottle.tar.gz
🍺  /home/linuxbrew/.linuxbrew/Cellar/mkcert/1.4.0: 7 files, 4.7MB
$ mkcert -install
Created a new local CA at "/home/w/.local/share/mkcert" 💥
[sudo] password for w: 
The local CA is now installed in the system trust store! ⚡️
Warning: "certutil" is not available, so the CA can't be automatically installed in Firefox and/or Chrome/Chromium! ⚠️
Install "certutil" with "apt install libnss3-tools" and re-run "mkcert -install" 👈
$ mkcert example.com "*.example.com" example.test localhost 127.0.0.1 ::1
Using the local CA at "/home/w/.local/share/mkcert" ✨
Warning: the local CA is not installed in the Firefox and/or Chrome/Chromium trust store! ⚠️
Run "mkcert -install" to avoid verification errors ‼️
Created a new certificate valid for the following names 📜
 - "example.com"
 - "*.example.com"
 - "example.test"
 - "localhost"
 - "127.0.0.1"
 - "::1"
Reminder: X.509 wildcards only go one level deep, so this won't match a.b.example.com ℹ️
The certificate is at "./example.com+5.pem" and the key at "./example.com+5-key.pem" ✅
目录
相关文章
|
域名解析 缓存 网络协议
阿里云DNS专家,手把手教你定位域名解析不生效
域名解析不生效、ping域名IP地址不正确、网站打不开,你是否还在为这些问题困扰? 阿里云DNS专家,手把手教你庖丁解牛,定位域名解析不生效原因
29257 0
|
6月前
|
监控 JavaScript 前端开发
如何进行 Vue 项目的构建和部署?
如何进行 Vue 项目的构建和部署?
145 2
|
5月前
|
存储 关系型数据库 数据库
经验大分享:PostgreSQL学习之【用户权限管理】说明
经验大分享:PostgreSQL学习之【用户权限管理】说明
382 1
|
6月前
|
SQL 监控 关系型数据库
PG数据库释放闲置连接
PG数据库释放闲置连接
211 0
|
6月前
|
数据安全/隐私保护 网络安全 网络协议
2024年广东省网络系统管理样题第5套服务部署部分
2024年广东省网络系统管理样题第5套服务部署部分
2024年广东省网络系统管理样题第5套服务部署部分
|
6月前
|
开发工具 git
IDEA通过git怎么回滚到某个提交节点或某个版本
IDEA通过git怎么回滚到某个提交节点或某个版本
2020 0
npx指定下载源
npx指定下载源
267 0
|
弹性计算 网络安全 数据中心
阿里云192.168.0.0/16、172.16.0.0/12、10.0.0.0/8网段怎么选?
阿里云专有网络VPC网段192.168.0.0/16、172.16.0.0/12、10.0.0.0/8怎么选?
473 0
阿里云192.168.0.0/16、172.16.0.0/12、10.0.0.0/8网段怎么选?
图片转base64 并根据格式加前缀
图片转base64 并根据格式加前缀
375 0