fix(bitwarden): add SSL context for API requests and set device identifiers

This commit is contained in:
2026-08-26 12:53:10 +02:00
parent 0055397ed5
commit d53c7fc85c
2 changed files with 22 additions and 4 deletions
+6
View File
@@ -15,6 +15,12 @@ py_modules_dir = os.path.join(plugin_dir, "py_modules")
sys.path.insert(0, py_modules_dir)
sys.path.insert(0, plugin_dir)
if "SSL_CERT_FILE" not in os.environ:
for ca_path in ["/etc/ssl/certs/ca-certificates.crt", "/etc/ssl/certs/ca-bundle.crt"]:
if os.path.exists(ca_path):
os.environ["SSL_CERT_FILE"] = ca_path
break
def _ensure_deps():
try:
import cryptography # noqa: F401