Hi, I'm trying to change the panel to SSL, but it has the error:
An error occurred while the panel was running!
TypeError: 'NoneType' object is not subscriptable
REQUEST_DATE: 2021-08-31 07:56:56
PAN_VERSION: 6.8.1
OS_VERSION: Ubuntu 20.04.1 LTS x86_64(Py3.7.9)
REMOTE_ADDR: 186.206.255.172
REQUEST_URI: POST /config?action=SetPanelSSL
REQUEST_FORM: {'cert_type': '2', 'email': 'henrique@h2digital.net'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Traceback (most recent call last):
File "class/setPanelLets.py", line 101, in read_site_cert
key_file = "{path}{domain}/{key}".format(path=self.vhost_cert_path,domain=domain_cert["subject"],key="privkey.pem")
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/www/server/panel/BTPanel/init.py", line 1558, in publicObject
return run_exec().run(toObject, defs, get)
File "/www/server/panel/BTPanel/init.py", line 1506, in run
result = getattr(toObject,get.action)(get)
File "class/config.py", line 745, in SetPanelSSL
sps = sp.set_lets(get)
File "class/setPanelLets.py", line 208, in set_lets
self.copy_cert(domain_cert)
File "class/setPanelLets.py", line 174, in copy_cert
self.__read_site_cert(domain_cert)
File "class/setPanelLets.py", line 105, in __read_site_cert
key_file = "/www/server/panel/{}/privkey.pem".format(domain_cert['save_path'])
TypeError: 'NoneType' object is not subscriptable