fix: api.rest and https.server certificates are now correctly generated with IsCA to false

This commit is contained in:
evilsocket 2019-04-21 19:55:53 +02:00
parent 070708c307
commit 8257d25ff3
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
23 changed files with 8876 additions and 14 deletions

View file

@ -221,7 +221,7 @@ func (mod *RestAPI) Configure() error {
mod.Debug("%+v", cfg)
mod.Info("generating TLS key to %s", mod.keyFile)
mod.Info("generating TLS certificate to %s", mod.certFile)
if err := tls.Generate(cfg, mod.certFile, mod.keyFile); err != nil {
if err := tls.Generate(cfg, mod.certFile, mod.keyFile, false); err != nil {
return err
}
} else {