Skip to content

ERROR: module 'ssl' has no attribute 'match_hostname'

Description

Onionprobe on Debian sid is displaying the following error (example):

ERROR: module 'ssl' has no attribute 'match_hostname'

Tasks

  • Detect whether ssl.match_hostname() is available.
  • Use an alternative to ssl.match_hostname() if it's not available.

Time estimation

  • Complexity: very small (0.5 day)
  • Uncertainty: low (x1.1)
  • Reference (adapted)
Edited by Silvio Rhatto