Skip to content

Commit

Permalink
Fixing ValueError: empty or no certificate, match_hostname needs a SS…
Browse files Browse the repository at this point in the history
…L socket or SSL context with either CERT_OPTIONAL or CERT_REQUIRED
  • Loading branch information
Lucas-C committed Jul 9, 2020
1 parent 666bcea commit 1ce1074
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.2] - 2020-07-09
### Fixed
- fixed this: `ValueError: empty or no certificate, match_hostname needs a SSL socket or SSL context with either CERT_OPTIONAL or CERT_REQUIRED`

## [1.0.1] - 2020-07-09
### Added
- `LINKBACKS_CERT_VERIFY` & `LINKBACKS_REQUEST_TIMEOUT` settings
Expand Down
1 change: 1 addition & 0 deletions linkbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def make_connection(self, host):
conn.timeout = self.timeout
if self.cert_verify is False:
# pylint: disable=protected-access
conn._check_hostname = False
conn._context.check_hostname = False
conn._context.verify_mode = CERT_NONE
return conn
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pelican-plugin-linkbacks"
version = "1.0.1"
version = "1.0.2"
description = "Pelican plugin implementing Linkback protocols, on the linking server side"
authors = ["Lucas Cimon <lucas.cimon@gmail.com>"]
license = "AGPL-3.0"
Expand Down

0 comments on commit 1ce1074

Please sign in to comment.