Serve diagnostics and CA certificate

Fixes #21.  Reference:

https://mtersch.wordpress.com/2015/03/17/certificate-import-in-firefox-on-android/
This commit is contained in:
Andrew Gaul
2017-08-20 21:55:20 -07:00
parent 703cb4adaf
commit f69a0b7e0e
4 changed files with 98 additions and 10 deletions

View File

@ -31,7 +31,7 @@ var (
func main() {
flag.Parse()
p := proxy.New()
p := proxy.New(*host, cert)
if (*ca == "") != (*caKey == "") {
log.Fatalln("must specify both CA certificate and key")