new: implemented basic https proxy (fixes #3)

This commit is contained in:
evilsocket 2018-01-14 16:13:47 +01:00
parent c582782dc7
commit 6c4a13b5bc
5 changed files with 187 additions and 14 deletions

View file

@ -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)
}