diff --git a/pyapns/server.py b/pyapns/server.py index a4ec928..6ecbe04 100644 --- a/pyapns/server.py +++ b/pyapns/server.py @@ -54,7 +54,7 @@ def __init__(self, ssl_cert_file): log.msg('APNSClientContextFactory ssl_cert_file=%s' % ssl_cert_file) else: log.msg('APNSClientContextFactory ssl_cert_file={FROM_STRING}') - self.ctx = SSL.Context(SSL.SSLv3_METHOD) + self.ctx = SSL.Context(SSL.TLSv1_METHOD) if 'BEGIN CERTIFICATE' in ssl_cert_file: cer = crypto.load_certificate(crypto.FILETYPE_PEM, ssl_cert_file) pkey = crypto.load_privatekey(crypto.FILETYPE_PEM, ssl_cert_file)