forked from p34709852/monkey
Add log message for which certificate is being used
This commit is contained in:
parent
c1463b4a18
commit
6f1154f911
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue