Skip to content

Commit

Permalink
Merge pull request #71 from FabriceMk/master
Browse files Browse the repository at this point in the history
Switched SSL method with APNS servers from SSL 3.0 to TLS1.0 because of ...
  • Loading branch information
samuraisam committed Oct 30, 2014
2 parents a56912f + 55ccd29 commit 41abf6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyapns/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 41abf6e

Please sign in to comment.