Skip to content
This repository was archived by the owner on Dec 8, 2020. It is now read-only.

Commit ea967b9

Browse files
committed
Forcibly fallback to SSLv23 if SSLv3 fails
1 parent 397196a commit ea967b9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Forcibly fallback to SSLv23 if SSLv3 fails. SSLv3 is only used for outdated OpenSSL versions.
13+
1014
## [2.3.0] - 2017-09-26
1115

1216
### Added

lib/timber/cli/api.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ def issue!(req)
159159
else
160160
res
161161
end
162+
rescue OpenSSL::SSL::SSLError => e
163+
if http.ssl_version != :SSLv23
164+
http.ssl_version = :SSLv23
165+
retry
166+
end
162167
end
163168

164169
def http

0 commit comments

Comments
 (0)