OXIESEC PANEL
- Current Dir:
/
/
snap
/
certbot
/
4730
/
lib
/
python3.12
/
site-packages
/
certbot_apache
/
_internal
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/10/2025 09:51:14 PM
rwxr-xr-x
📄
__init__.py
29 bytes
06/10/2025 09:51:04 PM
rw-r--r--
📁
__pycache__
-
06/10/2025 09:51:14 PM
rwxr-xr-x
📄
apache_util.py
7.39 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
apacheparser.py
7.88 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
assertions.py
5.75 KB
06/10/2025 09:51:04 PM
rw-r--r--
📁
augeas_lens
-
06/10/2025 09:51:14 PM
rwxr-xr-x
📄
augeasparser.py
20.62 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
configurator.py
110.05 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
constants.py
3.78 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
display_ops.py
4.47 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
dualparser.py
14.7 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
entrypoint.py
2.9 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
http_01.py
8.27 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
interfaces.py
22.29 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
obj.py
9.06 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
override_alpine.py
694 bytes
06/10/2025 09:51:04 PM
rw-r--r--
📄
override_arch.py
676 bytes
06/10/2025 09:51:04 PM
rw-r--r--
📄
override_centos.py
4.59 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
override_darwin.py
604 bytes
06/10/2025 09:51:04 PM
rw-r--r--
📄
override_debian.py
5.16 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
override_fedora.py
3.38 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
override_gentoo.py
2.37 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
override_suse.py
670 bytes
06/10/2025 09:51:04 PM
rw-r--r--
📄
override_void.py
681 bytes
06/10/2025 09:51:04 PM
rw-r--r--
📄
parser.py
35.95 KB
06/10/2025 09:51:04 PM
rw-r--r--
📄
parsernode_util.py
5.69 KB
06/10/2025 09:51:04 PM
rw-r--r--
📁
tests
-
06/10/2025 09:51:14 PM
rwxr-xr-x
📁
tls_configs
-
06/10/2025 09:51:14 PM
rwxr-xr-x
Editing: entrypoint.py
Close
""" Entry point for Apache Plugin """ from typing import Dict from typing import Type from certbot import util from certbot_apache._internal import configurator from certbot_apache._internal import override_alpine from certbot_apache._internal import override_arch from certbot_apache._internal import override_centos from certbot_apache._internal import override_darwin from certbot_apache._internal import override_debian from certbot_apache._internal import override_fedora from certbot_apache._internal import override_gentoo from certbot_apache._internal import override_suse from certbot_apache._internal import override_void OVERRIDE_CLASSES: Dict[str, Type[configurator.ApacheConfigurator]] = { "alpine": override_alpine.AlpineConfigurator, "arch": override_arch.ArchConfigurator, "cloudlinux": override_centos.CentOSConfigurator, "darwin": override_darwin.DarwinConfigurator, "debian": override_debian.DebianConfigurator, "ubuntu": override_debian.DebianConfigurator, "centos": override_centos.CentOSConfigurator, "centos linux": override_centos.CentOSConfigurator, "fedora_old": override_centos.CentOSConfigurator, "fedora": override_fedora.FedoraConfigurator, "linuxmint": override_debian.DebianConfigurator, "ol": override_centos.CentOSConfigurator, "oracle": override_centos.CentOSConfigurator, "redhatenterpriseserver": override_centos.CentOSConfigurator, "red hat enterprise linux server": override_centos.CentOSConfigurator, "rhel": override_centos.CentOSConfigurator, "amazon": override_centos.CentOSConfigurator, "gentoo": override_gentoo.GentooConfigurator, "gentoo base system": override_gentoo.GentooConfigurator, "opensuse": override_suse.OpenSUSEConfigurator, "suse": override_suse.OpenSUSEConfigurator, "sles": override_suse.OpenSUSEConfigurator, "scientific": override_centos.CentOSConfigurator, "scientific linux": override_centos.CentOSConfigurator, "void": override_void.VoidConfigurator, } def get_configurator() -> Type[configurator.ApacheConfigurator]: """ Get correct configurator class based on the OS fingerprint """ os_name, os_version = util.get_os_info() os_name = os_name.lower() override_class = None # Special case for older Fedora versions min_version = util.parse_loose_version('29') if os_name == 'fedora' and util.parse_loose_version(os_version) < min_version: os_name = 'fedora_old' try: override_class = OVERRIDE_CLASSES[os_name] except KeyError: # OS not found in the list os_like = util.get_systemd_os_like() if os_like: for os_name in os_like: override_class = OVERRIDE_CLASSES.get(os_name) if not override_class: # No override class found, return the generic configurator override_class = configurator.ApacheConfigurator return override_class ENTRYPOINT = get_configurator()