diff --git a/pyravendb/connection/requests_executor.py b/pyravendb/connection/requests_executor.py
index <HASH>..<HASH> 100644
--- a/pyravendb/connection/requests_executor.py
+++ b/pyravendb/connection/requests_executor.py
@@ -39,7 +39,11 @@ class RequestsExecutor(object):
             return certificate, None
         pfx = certificate["pfx"]
         password = certificate.get("password", None)
-        adapter = Pkcs12Adapter(pkcs12_data=pfx, pkcs12_password=password)
+        adapter = (
+            Pkcs12Adapter(pkcs12_filename=pfx, pkcs12_password=password)
+            if os.path.isfile(pfx)
+            else Pkcs12Adapter(pkcs12_data=pfx, pkcs12_password=password)
+        )
         return None, adapter
 
     def __init__(self, database_name, certificate, conventions=None, **kwargs):
RDBC-<I> Added support for loading certificate from file while creating document store