Install python-service-identity by entering the following commands in the terminal:
sudo apt update sudo apt install python-service-identity
Description:
Service identity verification for pyOpenSSL (Python 2 module)
Service_identity aspires to give you all the tools you need for verifying whether a certificate is valid for the intended purposes. . In the simplest case, this means host name verification. However, service_identity implements RFC 6125 fully and plans to add other relevant RFCs too. . This package contains service_identity for Python 2.
Homepage: https://pypi.python.org/pypi/service_identity
Version: 16.0.0-2
Section: python