Skip to content

Commit 55ccd29

Browse files
author
fabrice
committed
Switched SSL method with APNS servers from SSL 3.0 to TLS1.0 because of Apple dropping support for SSL3.0
1 parent a56912f commit 55ccd29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyapns/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self, ssl_cert_file):
5454
log.msg('APNSClientContextFactory ssl_cert_file=%s' % ssl_cert_file)
5555
else:
5656
log.msg('APNSClientContextFactory ssl_cert_file={FROM_STRING}')
57-
self.ctx = SSL.Context(SSL.SSLv3_METHOD)
57+
self.ctx = SSL.Context(SSL.TLSv1_METHOD)
5858
if 'BEGIN CERTIFICATE' in ssl_cert_file:
5959
cer = crypto.load_certificate(crypto.FILETYPE_PEM, ssl_cert_file)
6060
pkey = crypto.load_privatekey(crypto.FILETYPE_PEM, ssl_cert_file)

0 commit comments

Comments
 (0)