mozilla / django-browserid

Django application for adding BrowserID support.
Mozilla Public License 2.0
180 stars 80 forks source link

SSL certificate error #271

Closed pedmiston closed 9 years ago

pedmiston commented 9 years ago

I'm having an issue that I can replicate using the boilerplate setup for django_browserid so I'm crossing my fingers that the group might be able to direct me to some possible solutions. At this point I don't know if the issue is particular to Persona or to some nuance of my current setup. If the former, hopefully the issue will lead to a section in the django_browserid docs about SSL issues. If the latter, than apologies for bugging the list but if anyone more educated than myself has any suggestions I'd love to hear them.

I'm getting an SSL certificate failure when trying to authenticate with Persona that I can't track down. I've posted the issue to Stack Overflow[1] and made a minimal example repo on github.com [2].

[1] http://stackoverflow.com/questions/25813951/ssl-certificate-verify-failure-using-django-and-mozilla-persona [2] https://github.com/pedmiston/ssl_error

Osmose commented 9 years ago

Thanks for filing!

I set up an instance of your ssl_error example and signing in worked fine for me. The error message certainly seems to indicate it's failing to verify the cert of the remote verification service, but you mentioned that even setting verify to False didn't fix it. Hmmm...

Could it have been a hiccup in the Persona service? Are you still getting the issue? Do you get it on a fresh copy of your example?

pedmiston commented 9 years ago

It turns out that in my attempts to localize the error I wasn't passing the verify = False to the requests.post(...) call correctly, and if I do pass it, then I can get the minimal example to pass the authentication. Of course, this doesn't fix the underlying issue, but it does illustrate that the issue isn't something particular to django_browserid, so I'll close the issue here. Sorry for the spam.

I have updated the question on Stack Overflow, in case any Mac pros versed in Mavericks have any suggestions.

Osmose commented 9 years ago

No prob, hope you fix your issue!