===== Ubiquiti UISP =====
{{tag>ubiquiti uisp docker}}
==== Let's Encrypt SSL Certificate ====
When attempting to renew the Let's Encrypt SSL certificate I received an error message similar to the following.
Traceback (most recent call last):
File "/usr/bin/certbot", line 5, in
from certbot.main import main
File "/usr/lib/python3.8/site-packages/certbot/main.py", line 2, in
from certbot._internal import main as internal_main
File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 28, in
from certbot._internal import account
File "/usr/lib/python3.8/site-packages/certbot/_internal/account.py", line 19, in
from acme.client import ClientBase # pylint: disable=unused-import
ImportError: cannot import name 'ClientBase' from 'acme.client' (/usr/lib/python3.8/site-packages/acme/client.py)
I resolved this by connecting to the UISP nginx docker container and updating the certbot and acme python packages.
docker container ls
docker exec -it unms-nginx sh
python3 -m pip list
python3 -m pip install --upgrade certbot
After updating I no longer received the error message and was able to successfully renew my Let's Encrypt SSL certificate.