Skip to content

Commit 036f396

Browse files
committed
Change SSLv3 to TLSv1
1 parent 5334f33 commit 036f396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

push_notifications/apns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _apns_create_socket(address_tuple):
4545
raise ImproperlyConfigured("The APNS certificate file at %r is not readable: %s" % (certfile, e))
4646

4747
sock = socket.socket()
48-
sock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_SSLv3, certfile=certfile)
48+
sock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_TLSv1, certfile=certfile)
4949
sock.connect(address_tuple)
5050

5151
return sock

0 commit comments

Comments
 (0)