Add log message for which certificate is being used

This commit is contained in:
Shreya 2021-06-03 16:17:47 +05:30
parent c1463b4a18
commit 6f1154f911
1 changed files with 5 additions and 0 deletions

View File

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