fengmm521 / apns-python-wrapper

Automatically exported from code.google.com/p/apns-python-wrapper
0 stars 0 forks source link

[Errno 1] _ssl.c:503: error:14094416:SSL routines:SSL3_READ_BYTES:sslv3 alert certificate unknown #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I followed the tutorial to book.
am using Python 2.7.2+ on ubuntu 11.10.
Have installed using easy_install so its latest 0.6.1 version.

unable to decipher whats going wrong.

Original issue reported on code.google.com by lokeshch...@gmail.com on 21 Nov 2011 at 12:30

GoogleCodeExporter commented 9 years ago
me too

[Errno 1] _ssl.c:504: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert 
handshake failure
fail: [Errno 1] _ssl.c:504: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 
alert handshake failure

python 2.7.8, OS X

Original comment by park...@daam.co.kr on 5 Oct 2014 at 1:44

GoogleCodeExporter commented 9 years ago
same here

Original comment by vincent....@gmail.com on 6 Oct 2014 at 2:30

GoogleCodeExporter commented 9 years ago
try this :

In connection.py

self.connectionContext = self.ssl_module.wrap_socket(
                    self.socket,
                    ssl_version = self.ssl_module.PROTOCOL_SSLv3,
                    certfile = self.certificate
                )

instead of PROTOCOL_SSLv3 just put PROTOCOL_TLSv1.

Original comment by vijaybho...@gmail.com on 9 Oct 2014 at 5:24

GoogleCodeExporter commented 9 years ago
What is the reason of failing with SSLv3 and it works with TLSv1 ?

Original comment by jdk2...@gmail.com on 29 Oct 2014 at 11:15

GoogleCodeExporter commented 9 years ago
Use vijaybho answer.
It works perfectly. Thank you.

Original comment by paulobr...@gmail.com on 2 Nov 2014 at 5:20