We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5334f33 commit 036f396Copy full SHA for 036f396
push_notifications/apns.py
@@ -45,7 +45,7 @@ def _apns_create_socket(address_tuple):
45
raise ImproperlyConfigured("The APNS certificate file at %r is not readable: %s" % (certfile, e))
46
47
sock = socket.socket()
48
- sock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_SSLv3, certfile=certfile)
+ sock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_TLSv1, certfile=certfile)
49
sock.connect(address_tuple)
50
51
return sock
0 commit comments