https://github.com/hellojukay/mkcert
自签名 nginx 证书
https://github.com/hellojukay/mkcert
Last synced: 3 months ago
JSON representation
自签名 nginx 证书
- Host: GitHub
- URL: https://github.com/hellojukay/mkcert
- Owner: hellojukay
- License: bsd-3-clause
- Created: 2021-11-01T09:52:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-22T08:55:10.000Z (almost 4 years ago)
- Last Synced: 2025-08-10T07:23:28.848Z (10 months ago)
- Language: HTML
- Homepage:
- Size: 4.3 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mkcert
自签名 nginx 证书
```
mkcert -ip=127.0.0.1 -domain=localhost
```
```
hellojukay@local mkcert (main) $ mkcert -h
mkcert [options] generate TLS cert.
-h
--help Print help message
--domain 你的域名
--ip 你的ip地址
-v
--verbose Print debug log
```
使用已经存在的 CA 证书
```
./mkcert --domain=localhost --ip='127.0.0.1' --root-crt=ca.crt --root-key=ca.key
```
# 通过接口
```
go build
./mkcert-server
# open localhost:8080
```