Skip to content

Commit

Permalink
http_proxy: use mitm-org with in memory generated CA (#723)
Browse files Browse the repository at this point in the history
Fixes #587
  • Loading branch information
mmatczuk authored Feb 26, 2024
1 parent 50565c9 commit 83923ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mitm.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func DefaultMITMConfig() *MITMConfig {
func (c *MITMConfig) loadCACertificate() (cert tls.Certificate, err error) {
if c.CACertFile == "" && c.CAKeyFile == "" {
tmpl := certutil.ECDSASelfSignedCert()
tmpl.Organization = []string{c.Organization}
tmpl.Hosts = nil
tmpl.IsCA = true
return tmpl.Gen()
Expand Down

0 comments on commit 83923ef

Please sign in to comment.