Thursday, October 31, 2013

Re: Django mysql over ssl (2026, 'SSL connection error: Failed to set ciphers to use')

On Thu, Oct 31, 2013 at 9:25 AM, <alex@doctuo.com> wrote:
> Hi,
>
> Summary:
> I'm getting this error "(2026, 'SSL connection error: Failed to set
> ciphers to use')", on the django error page and I don't know what i
> happening!!!
>
>
> I'm using apache / wsgi and my aplication it's on a virtualenv.
>
> The main problem is that I can't connect to a remote mysql over ssl.
>
> The first think checked was the ssl configuration... but it's all rigth
> becouse I can run all django commands, (runserver too) without any problem,
> and the aplications it's connecting to the remote database over ssl
> correctly.
>
> The next think checked was runserver response and the application doesn't
> raise any error... it works perfectly...
>
> With that two points i can see that the problem is in the wsgi,
> specifically with the libraries that load to run the application becouse
> it's the only think that I can see that is diferent from a runserver
> (executed inside the virtualenv)
>
> Anyone have had the same problem or can give me ant clue, I'm spending a lot
> of hours tryng to solve that.
>
> The next test will be change to nginx to see if the problem persist..
>

Sounds like libmysqlclient is linked to a different libssl than
httpd/mod_ssl is linked to.

ldd /path/to/libmysqlclient.so
ldd /path/to/mod_ssl.so

If so, fix it - upgrade one or the other.

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1Ld%2BCf3gGPCE32zqmxnHtExOs75SZp45NFB8y%2BAgnu6fg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment