There’s a couple threads floating around on this one. Try executing these commands and then going back to TLS to renew.
apt-get remove python-openssl pip3 uninstall pyOpenSSL pip3 install pyOpenSSL --upgrade
Other thread that had this resolution: Let's encrypt failure: exception on /ssl/provision - #2 by mboersma