From 6f1154f91178fbfe9e714b087741a1bbf6a9dcd3 Mon Sep 17 00:00:00 2001 From: Shreya Date: Thu, 3 Jun 2021 16:17:47 +0530 Subject: [PATCH] Add log message for which certificate is being used --- .../monkey_island/cc/setup/certificate/certificate_setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/monkey/monkey_island/cc/setup/certificate/certificate_setup.py b/monkey/monkey_island/cc/setup/certificate/certificate_setup.py index 2cb2f1e03..692dd5aa9 100644 --- a/monkey/monkey_island/cc/setup/certificate/certificate_setup.py +++ b/monkey/monkey_island/cc/setup/certificate/certificate_setup.py @@ -1,8 +1,11 @@ +import logging import os from common.utils.exceptions import InsecurePermissionsError from monkey_island.setup.island_config_options import IslandConfigOptions +logger = logging.getLogger(__name__) + def setup_certificate(config_options: IslandConfigOptions) -> (str, str): crt_path = config_options.crt_path @@ -18,6 +21,8 @@ def setup_certificate(config_options: IslandConfigOptions) -> (str, str): f"{file} has insecure permissions. Required permissions: r--------. Exiting." ) + logger.INFO(f"Using certificate path: {crt_path}, and key path: {key_path}.") + return crt_path, key_path