I ran btpip install pyopenssl and it was already installed and configured.
[root@dd~]# /www/server/panel/pyenv/bin/pip install pyOpenSSL
Requirement already satisfied: pyOpenSSL in /www/server/panel/pyenv/lib/python3.12/site-packages (24.2.1)
Requirement already satisfied: cryptography<44,>=41.0.5 in /www/server/panel/pyenv/lib/python3.12/site-packages (from pyOpenSSL) (42.0.5)
Requirement already satisfied: cffi>=1.12 in /www/server/panel/pyenv/lib/python3.12/site-packages (from cryptography<44,>=41.0.5->pyOpenSSL) (1.15.1)
Requirement already satisfied: pycparser in /www/server/panel/pyenv/lib/python3.12/site-packages (from cffi>=1.12->cryptography<44,>=41.0.5->pyOpenSSL) (2.21)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.