Skip to content

The agent that grows with you

fix(tls): install truststore in the hermes-agent and hermes-acp scripts

ethernet311a1f253d09
diff --git a/acp_adapter/entry.py b/acp_adapter/entry.py
index c3aacb14a59..92e54c91861 100644
--- a/acp_adapter/entry.py
+++ b/acp_adapter/entry.py
@@ -175,6 +175,13 @@ def main(argv: list[str] | None = None) -> None:
if project_root not in sys.path:
sys.path.insert(0, project_root)
+ # One TLS authority: trust the OS store before any outbound call (bare
+ # requests/urllib included) resolves a CA bundle — see agent/ssl_verify.py.
+ # This console script bypasses hermes_cli.main, which does the same.
+ from agent.ssl_verify import install_truststore
+
+ install_truststore()
+
import acp
from .server import HermesACPAgent
diff --git a/run_agent.py b/run_agent.py
index 28f7626e170..d78739f36ea 100644
--- a/run_agent.py
+++ b/run_agent.py
@@ -1520,6 +1520,14 @@ def main(
if list_tools:
return _print_tool_listing()
+ # One TLS authority: trust the OS store before any outbound call (bare
+ # requests/urllib included) resolves a CA bundle — see agent/ssl_verify.py.
+ # The `hermes` CLI does this in hermes_cli.main; this console script
+ # bypasses it. Never raises.
+ from agent.ssl_verify import install_truststore
+
+ install_truststore()
+
enabled_toolsets_list = _parse_toolset_arg(enabled_toolsets, "🎯 Enabled toolsets")
disabled_toolsets_list = _parse_toolset_arg(disabled_toolsets, "🚫 Disabled toolsets")
if save_trajectories: