From 78c6c32de1a78b87ac947bf819285fa5f2cfa7d8 Mon Sep 17 00:00:00 2001 From: lqqyt2423 <974923609@qq.com> Date: Thu, 3 Dec 2020 23:02:09 +0800 Subject: [PATCH] readme --- Makefile | 4 ++++ README.md | 4 +++- go.mod | 2 +- proxy/cert.go | 4 ++++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4763af2..9dcbf5e 100644 --- a/Makefile +++ b/Makefile @@ -9,3 +9,7 @@ testserver: .PHONY: clean clean: rm -f mitmproxy testserver + +.PHONY: test +test: + go test ./... diff --git a/README.md b/README.md index 8b121f4..8b412b8 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # go-mitmproxy +[mitmproxy](https://mitmproxy.org/) implemented with golang. + ## TODO - [x] http handler - [x] http connect -- [ ] https handler - [ ] cert +- [ ] https handler diff --git a/go.mod b/go.mod index 76223c9..7ca4d73 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module github.com/lqqyt2423/go-mitmproxy -go 1.14 +go 1.15 require github.com/joho/godotenv v1.3.0 diff --git a/proxy/cert.go b/proxy/cert.go index a15b338..4ebfede 100644 --- a/proxy/cert.go +++ b/proxy/cert.go @@ -17,6 +17,10 @@ import ( "time" ) +// reference +// https://docs.mitmproxy.org/stable/concepts-certificates/ +// https://github.com/mitmproxy/mitmproxy/blob/master/mitmproxy/certs.py + var caErrNotFound = errors.New("ca not found") type CA struct {