Skip to content

Commit

Permalink
Fix: set tls configuration in openvasd context builder. (#1715)
Browse files Browse the repository at this point in the history
It was starting only in http mode, since the tls certificate were not set, even if they were set in the config file.
  • Loading branch information
jjnicola authored Sep 9, 2024
1 parent cc5d8a1 commit 2771ad3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/openvasd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use nasl_interpreter::{FSPluginLoader, ScannerStackWithStorage};
use notus::NotusWrapper;
use openvas::cmd;
use storage::{FromConfigAndFeeds, Storage};
use tls::tls_config;
use tracing::{info, metadata::LevelFilter, warn};
use tracing_subscriber::EnvFilter;

Expand Down Expand Up @@ -117,6 +118,7 @@ where
.feed_config(config.feed.clone())
.await
.scanner(sh)
.tls_config(tls_config(config).unwrap_or(None))
.api_key(config.endpoints.key.clone())
.enable_get_scans(config.endpoints.enable_get_scans)
.storage(db)
Expand Down

0 comments on commit 2771ad3

Please sign in to comment.