From 2771ad39613c64c486a7534cb5097bff038e708a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Nicola?= Date: Mon, 9 Sep 2024 15:24:48 +0200 Subject: [PATCH] Fix: set tls configuration in openvasd context builder. (#1715) It was starting only in http mode, since the tls certificate were not set, even if they were set in the config file. --- rust/openvasd/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/openvasd/src/main.rs b/rust/openvasd/src/main.rs index ea8c75963..a1e637788 100644 --- a/rust/openvasd/src/main.rs +++ b/rust/openvasd/src/main.rs @@ -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; @@ -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)