diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2016-03-12 16:10:24 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2016-03-12 16:10:24 -0500 |
commit | 45f1253acc3d94a915d44f0cf855ddafcfe5a630 (patch) | |
tree | 5f9e1023216228aa6b57872abb3ff25717cceec7 /docs/faq.rst | |
parent | d32f2d77f372a651b521f4f895464b411a8c63bc (diff) | |
parent | 4e9bd8cf1f56f18e49991d2964bb89df56eb0d63 (diff) | |
download | cryptography-45f1253acc3d94a915d44f0cf855ddafcfe5a630.tar.gz cryptography-45f1253acc3d94a915d44f0cf855ddafcfe5a630.tar.bz2 cryptography-45f1253acc3d94a915d44f0cf855ddafcfe5a630.zip |
Merge pull request #2817 from reaperhulk/mod-wsgi-workaround
add two faq entries for common errors
Diffstat (limited to 'docs/faq.rst')
-rw-r--r-- | docs/faq.rst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/faq.rst b/docs/faq.rst index 363a350f..3456ba97 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -23,5 +23,24 @@ OpenSSL. You're seeing this error because your copy of pip is too old to find our wheel files. Upgrade your copy of pip with ``pip install -U pip`` and then try install ``cryptography`` again. +Starting ``cryptography`` using ``mod_wsgi`` produces an ``InternalError`` during a call in ``_register_osrandom_engine`` +------------------------------------------------------------------------------------------------------------------------- + +This happens because ``mod_wsgi`` uses sub-interpreters, which can cause a +problem during initialization of the OpenSSL backend. To resolve this set the +`WSGIApplicationGroup`_ to ``%{GLOBAL}`` in the ``mod_wsgi`` configuration. + +``cryptography`` raised an ``InternalError`` and I'm not sure what to do? +------------------------------------------------------------------------- + +Frequently ``InternalError`` is raised when there are errors on the OpenSSL +error stack that were placed there by other libraries that are also using +OpenSSL. Try removing the other libraries and see if the problem persists. +If you have no other libraries using OpenSSL in your process, or they do not +appear to be at fault, it's possible that this is a bug in ``cryptography``. +Please file an `issue`_ with instructions on how to reproduce it. + .. _`NaCl`: https://nacl.cr.yp.to/ .. _`PyNaCl`: https://pynacl.readthedocs.org +.. _`WSGIApplicationGroup`: https://modwsgi.readthedocs.org/en/develop/configuration-directives/WSGIApplicationGroup.html +.. _`issue`: https://github.com/pyca/cryptography/issues |