Giter Club home page Giter Club logo

Comments (13)

jleclanche avatar jleclanche commented on May 29, 2024

Not sure why it's doing a ssl3 handshake, it should do something like tls1x

from django-push-notifications.

sujitnair avatar sujitnair commented on May 29, 2024

Isn't it because in _apns_create_socket (line 48) you have

sock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_SSLv3, certfile=certfile)

?
Sujit

from django-push-notifications.

sorter avatar sorter commented on May 29, 2024

I'm running on python 2.6 and I also had this issue. I replaced the aforementioned line with:

    sock = ssl.wrap_socket(sock, ssl_version=ssl.PROTOCOL_TLSv1, certfile=certfile)

And I'm no longer having any issues.

from django-push-notifications.

mplulu avatar mplulu commented on May 29, 2024

I have same problem. @sorter solution worked for me.

Also only PROTOCOL_TLSv1 worked, PROTOCOL_TLSv1_2 will not work

from django-push-notifications.

 avatar commented on May 29, 2024

Same issue. Has anything changed from Apple?

from django-push-notifications.

gkirkpatrick avatar gkirkpatrick commented on May 29, 2024

I got one error about this via Sentry on my system and that was it.

Did apple do something and then undo-it?

I can’t replicate the error and I haven’t changed anything.
On Oct 6, 2014, at 10:40 AM, Julien Ricard [email protected] wrote:

Same issue. Has anything changed from Apple?


Reply to this email directly or view it on GitHub.

from django-push-notifications.

mplulu avatar mplulu commented on May 29, 2024

just revert the fix on my own server and see that the problem is still here. I also noted that only sandbox server is having problem, non sandbox server (my production server) is still working normally.

from django-push-notifications.

sujitnair avatar sujitnair commented on May 29, 2024

PROTOCOL_TLSv1_2 is only available on Python 3.4+. On my Mac, I can confirm this with

/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/ssl.py
/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/ssl.py

from django-push-notifications.

sujitnair avatar sujitnair commented on May 29, 2024

And yes, Apple sandbox gateway has stopped supporting SSL3. See

https://bitbucket.org/sardarnl/apns-client/pull-request/10/apple-sandbox-gateway-stopped-supporting/diff

from django-push-notifications.

sujitnair avatar sujitnair commented on May 29, 2024

I have a PR for this

#92

from django-push-notifications.

jleclanche avatar jleclanche commented on May 29, 2024

Fixed

from django-push-notifications.

jleclanche avatar jleclanche commented on May 29, 2024

Given the seriousness of the issue I will be doing a 1.2 release now with this fix in.

from django-push-notifications.

mplulu avatar mplulu commented on May 29, 2024

thank you. Thank you for writing this library too!!!

from django-push-notifications.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.