mkcert 生成本地 HTTPS 加密证书的工具开源项目

我要开发同款
匿名用户2018年07月05日
54阅读
开发技术GO语言
所属分类Google Go、其他
授权协议BSD

作品详情

mkcert是生成本地HTTPS加密证书的工具,一个命令就可以生成证书,不需要任何配置。

使用示例

$ mkcert -installCreated a new local CA at "/Users/filippo/Library/Application Support/mkcert"The local CA is now installed in the system trust store! The local CA is now installed in the Firefox trust store (requires restart)!$ mkcert example.com '*.example.org' myapp.dev localhost 127.0.0.1 ::1Using the local CA at "/Users/filippo/Library/Application Support/mkcert"Created a new certificate valid for the following names - "example.com" - "*.example.org" - "myapp.dev" - "localhost" - "127.0.0.1" - "::1"The certificate is at "./example.com+5.pem" and the key at "./example.com+5-key.pem"

安装使用

在macOS上,使用Homebrew进行安装

brew install mkcertbrew install nss # if you use Firefox

在Linux上,安装 certutil

sudo apt install libnss3-tools    -or-sudo yum install nss-tools

在Windows上,下载预先编译好的可执行文件

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论