fix(bitwarden): add SSL context for API requests and set device identifiers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user