Hi every body. Please help me to install ssl on my panel.
Problem :
TypeError: 'NoneType' object is not subscriptable
REQUEST_DATE: 2022-01-08 10:30:04
PAN_VERSION: 6.8.19
OS_VERSION: Debian GNU/Linux 10 x86_64(Py3.7.9)
REMOTE_ADDR: 909.230.12.02
REQUEST_URI: POST /config?action=SetPanelSSL
REQUEST_FORM: {'cert_type': '2', 'email': 'myemail@gmail.com'}
USER_AGENT: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0
`Traceback (most recent call last):
File "class/setPanelLets.py", line 111, 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 1579, in publicObject
return run_exec().run(toObject, defs, get)
File "/www/server/panel/BTPanel/init.py", line 1527, in run
result = getattr(toObject,get.action)(get)
File "class/config.py", line 764, in SetPanelSSL
sps = sp.set_lets(get)
File "class/setPanelLets.py", line 228, in set_lets
self.copy_cert(domain_cert)
File "class/setPanelLets.py", line 189, in copy_cert
res = self.__read_site_cert(domain_cert)
File "class/setPanelLets.py", line 115, in __read_site_cert
key_file = "/www/server/panel/{}/privkey.pem".format(domain_cert['save_path'])
TypeError: 'NoneType' object is not subscriptable`
Sorry, an unexpected error occurred while the panel was running. Please try to resolve this error in the following order:
1. Click the Fix button in the upper right corner of [Home], and log out of the panel and log in again.
2. Still unresolved, please take a screenshot of this window and post on the forum for help, address:https://www.aapanel.com/forum/