Skip to content

Commit

Permalink
Use truststore in appliance_manager.py instead
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Aug 7, 2023
1 parent e616b09 commit a262804
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 8 additions & 0 deletions gns3server/controller/appliance_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
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:
"""
Manages appliances
Expand Down
7 changes: 0 additions & 7 deletions gns3server/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@
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.logger import init_logger
from gns3server.version import __version__
Expand Down

0 comments on commit a262804

Please sign in to comment.