fix: several improvements to the https.proxy module

This commit is contained in:
evilsocket 2018-01-14 19:34:15 +01:00
parent 723d99cf62
commit f9f0f3d5b3
9 changed files with 308 additions and 29 deletions

View file

@ -50,6 +50,7 @@ func Generate(certPath string, keyPath string) error {
KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth},
BasicConstraintsValid: true,
IsCA: true,
}
cert_raw, err := x509.CreateCertificate(rand.Reader, &template, &template, &priv.PublicKey, priv)