mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: https.proxy is complete ^_^
This commit is contained in:
parent
e439f045a8
commit
21b8b4527f
3 changed files with 33 additions and 42 deletions
|
@ -210,7 +210,7 @@ func TLSConfigFromCA(ca *tls.Certificate) func(host string, ctx *goproxy.ProxyCt
|
|||
cert := getCachedCert(hostname, port)
|
||||
if cert == nil {
|
||||
log.Info("Creating spoofed certificate for %s:%d", core.Yellow(hostname), port)
|
||||
cert, err = btls.SignCertificateForHost(ca, hostname)
|
||||
cert, err = btls.SignCertificateForHost(ca, hostname, port)
|
||||
if err != nil {
|
||||
log.Warning("Cannot sign host certificate with provided CA: %s", err)
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue