django 1.9 in my ssl website requires PyOpenSSL-16.2.0

47 views
Skip to first unread message

XaviP

unread,
Apr 21, 2017, 3:12:05 AM4/21/17
to Django users
I had an issue upgrading from django 1.8 to 1.9 in a site with ssl.

The site was giving SSL_ERROR_INTERNAL_ERROR_ALERT from time to time.

In apache logs appeared this kind of errors:
[ssl:warn] [pid 26704:tid 140422937700096] AH01990: PRNG still contains insufficient entropy!
extern "Python": function Cryptography_rand_bytes() called, but no code was attached to it yet with @ffi.def_extern().  Returning 0.

The problem was solved with: pip install —upgrade PyOpenSSL (to version 16.2.0)

I don't really know if it was because my enviroment (vps), but I let here this note as it was hard to find information in internet about it.
Reply all
Reply to author
Forward
0 new messages