I was having a hard time getting SSL to work with gevent on Python 2.6. It turns out I had two problems. The first resulted in this error message: SSLError: [Errno 336265218] _ssl.c:337: error:140B0002:SSL routines:SSL_CTX_use_PrivateKey_file:system lib It turned out to be a permissions issue. I ran "cat" on the file, and it turned out that I didn't have access to it: cat: /etc/mycompany/certs/httpd/mycompany-wildcard.key: Permission denied I ran the command with sudo, and the problem went away. The second error was related to using urllib2 under gevent: URLError: <urlopen error [Errno 2] _ssl.c:490: The operation did not complete (read)> <Greenlet at 0x2add8d0: start_publisher> failed with URLError ... SSLError: [Errno 8] _ssl.c:490: EOF occurred in violation of protocol <Greenlet at 0x2add958: <bound method WSGIServer.wrap_socket_and_handle of <WSGIServer at 0x2b48750 fileno=3 address=127.0.0.1:34848>>(<socket at 0x2b48a10 fileno=5 sock
This is a purely technical blog concerning topics such as Python, Ruby, Scala, Go, JavaScript, Linux, open source software, the Web, and lesser-known programming languages.
Ad maiorem Dei gloriam inque hominum salutem.