mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 19:50:06 -07:00
new: implemented basic https proxy (fixes #3)
This commit is contained in:
parent
c582782dc7
commit
6c4a13b5bc
5 changed files with 187 additions and 14 deletions
|
@ -127,13 +127,13 @@ func (api *RestAPI) Configure() error {
|
|||
}
|
||||
|
||||
if core.Exists(api.certFile) == false || core.Exists(api.keyFile) == false {
|
||||
log.Info("Generating RSA key to %s", api.keyFile)
|
||||
log.Info("Generating TLS key to %s", api.keyFile)
|
||||
log.Info("Generating TLS certificate to %s", api.certFile)
|
||||
if err := tls.Generate(api.certFile, api.keyFile); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
log.Info("Loading RSA key from %s", api.keyFile)
|
||||
log.Info("Loading TLS key from %s", api.keyFile)
|
||||
log.Info("Loading TLS certificate from %s", api.certFile)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue