Skip to content

Commit

Permalink
Merge pull request #128 from recurly/remove_forced_protocol_specifier
Browse files Browse the repository at this point in the history
Remove forced TLSv1.0
  • Loading branch information
cbarton committed Sep 17, 2015
2 parents fd4b4a3 + 5de2607 commit 157b25b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions recurly/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,7 @@ def connect(self):
self._tunnel()

ssl_sock = ssl.wrap_socket(sock, self.key_file, self.cert_file,
ssl_version=ssl.PROTOCOL_TLSv1, cert_reqs=ssl.CERT_REQUIRED,
ca_certs=recurly.CA_CERTS_FILE)
cert_reqs=ssl.CERT_REQUIRED, ca_certs=recurly.CA_CERTS_FILE)

# Let the CertificateError for failure be raised to the caller.
match_hostname(ssl_sock.getpeercert(), self.host)
Expand Down

0 comments on commit 157b25b

Please sign in to comment.