1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Use truststore in appliance_manager.py instead

This commit is contained in:
grossmj 2023-08-07 19:04:55 +10:00
parent e616b09028
commit a2628042e8
2 changed files with 8 additions and 7 deletions

View File

@ -37,6 +37,14 @@ import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
try:
import truststore
truststore.inject_into_ssl()
log.info("Using system certificate store for SSL connections")
except ImportError:
pass
class ApplianceManager: class ApplianceManager:
""" """
Manages appliances Manages appliances

View File

@ -32,13 +32,6 @@ import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
try:
import truststore
truststore.inject_into_ssl()
log.info("Using system certificate store for SSL connections")
except ImportError:
pass
from gns3server.web.web_server import WebServer from gns3server.web.web_server import WebServer
from gns3server.web.logger import init_logger from gns3server.web.logger import init_logger
from gns3server.version import __version__ from gns3server.version import __version__