OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
third_party
/
httplib2
/
python3
/
httplib2
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/02/2022 11:24:16 PM
rwxr-xr-x
📄
__init__.py
66.81 KB
02/02/2022 11:24:16 PM
rw-r--r--
📁
__pycache__
-
02/11/2025 08:19:48 AM
rwxr-xr-x
📄
auth.py
2.11 KB
02/02/2022 11:24:16 PM
rw-r--r--
📄
cacerts.txt
134.15 KB
02/02/2022 11:24:16 PM
rw-r--r--
📄
certs.py
971 bytes
02/02/2022 11:24:16 PM
rw-r--r--
📄
error.py
954 bytes
02/02/2022 11:24:16 PM
rw-r--r--
📄
iri2uri.py
4.06 KB
02/02/2022 11:24:16 PM
rw-r--r--
📄
socks.py
19.24 KB
02/02/2022 11:24:16 PM
rw-r--r--
Editing: certs.py
Close
"""Utilities for certificate management.""" import os certifi_available = False certifi_where = None try: from certifi import where as certifi_where certifi_available = True except ImportError: pass custom_ca_locater_available = False custom_ca_locater_where = None try: from ca_certs_locater import get as custom_ca_locater_where custom_ca_locater_available = True except ImportError: pass BUILTIN_CA_CERTS = os.path.join( os.path.dirname(os.path.abspath(__file__)), "cacerts.txt" ) def where(): env = os.environ.get("HTTPLIB2_CA_CERTS") if env is not None: if os.path.isfile(env): return env else: raise RuntimeError("Environment variable HTTPLIB2_CA_CERTS not a valid file") if custom_ca_locater_available: return custom_ca_locater_where() if certifi_available: return certifi_where() return BUILTIN_CA_CERTS if __name__ == "__main__": print(where())