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 a56912f commit 55ccd29Copy full SHA for 55ccd29
pyapns/server.py
@@ -54,7 +54,7 @@ def __init__(self, ssl_cert_file):
54
log.msg('APNSClientContextFactory ssl_cert_file=%s' % ssl_cert_file)
55
else:
56
log.msg('APNSClientContextFactory ssl_cert_file={FROM_STRING}')
57
- self.ctx = SSL.Context(SSL.SSLv3_METHOD)
+ self.ctx = SSL.Context(SSL.TLSv1_METHOD)
58
if 'BEGIN CERTIFICATE' in ssl_cert_file:
59
cer = crypto.load_certificate(crypto.FILETYPE_PEM, ssl_cert_file)
60
pkey = crypto.load_privatekey(crypto.FILETYPE_PEM, ssl_cert_file)
0 commit comments