How to Install and Uninstall python-backports.ssl-match-hostname Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 17,2024

1. Install "python-backports.ssl-match-hostname" package

Please follow the instructions below to install python-backports.ssl-match-hostname on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python-backports.ssl-match-hostname

2. Uninstall "python-backports.ssl-match-hostname" package

Please follow the steps below to uninstall python-backports.ssl-match-hostname on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove python-backports.ssl-match-hostname $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-backports.ssl-match-hostname package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-backports.ssl-match-hostname
Priority: optional
Section: universe/python
Installed-Size: 60
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: all
Source: backports.ssl-match-hostname
Version: 3.4.0.2-1
Depends: python:any (>= 2.7.5-5~), python:any (<< 2.8)
Filename: pool/universe/b/backports.ssl-match-hostname/python-backports.ssl-match-hostname_3.4.0.2-1_all.deb
Size: 6258
MD5sum: c418d2dabedbf42a662f87282f9a85ce
SHA1: 8d8bd3c239a37e01092d67ca37578d946ca33284
SHA256: 59b44e0a09b22681357e64b8ec4e4550c3654b8beaea0ac91c8152df3c5ee8ce
Description-en: Backport of the Python 3.2 SSL hostname checking function
The Secure Sockets layer is only actually secure if you check the
hostname in the certificate returned by the server to which you are
connecting, and verify that it matches to hostname that you are trying
to reach.
.
But the matching logic, defined in RFC2818, can be a bit tricky to
implement on your own. So the ssl package in the Standard Library of
Python 3.2 and greater now includes a match_hostname() function for
performing this check instead of requiring every application to
implement the check separately.
.
This package contains a backport of the ssl.match_hostname function for
Python 2.4 and above.
Description-md5: a016005a30ecacd4d38f850babc598c8
Homepage: https://bitbucket.org/brandon/backports.ssl_match_hostname
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu