You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airflow.apache.org by Nicholas Hodgkinson <ni...@collectivehealth.com> on 2017/04/06 01:44:06 UTC
Problem using SSL w/ self-signed cert?
All,
I've generated a self signed certificate to use with airflow using the
following command:
openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout key.pem -out
cert.pem -days 365
However when trying to access the site from the local machine via:
curl -k https://localhost
curl hangs and I get this error in the webserver error log:
[2017-04-06 01:40:06 +0000] [28] [ERROR] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/gunicorn/workers/sync.py",
line 129, in handle
req = six.next(parser)
File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/parser.py",
line 41, in __next__
self.mesg = self.mesg_class(self.cfg, self.unreader, self.req_count)
File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/message.py",
line 153, in __init__
super(Request, self).__init__(cfg, unreader)
File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/message.py",
line 53, in __init__
unused = self.parse(self.unreader)
File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/message.py",
line 165, in parse
self.get_data(unreader, buf, stop=True)
File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/message.py",
line 156, in get_data
data = unreader.read()
File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/unreader.py",
line 38, in read
d = self.chunk()
File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/unreader.py",
line 65, in chunk
return self.sock.recv(self.mxchunk)
File "/usr/lib/python3.4/ssl.py", line 754, in recv
return self.read(buflen)
File "/usr/lib/python3.4/ssl.py", line 643, in read
v = self._sslobj.read(len or 1024)
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1769)
I did some looking online and couldn't find anything that pointed me in the
right direction to fix this. I can't tell if this is a problem with my
cert, a bug in airflow, or something else.
Thanks,
-N
nik.hodgkinson@collectivehealth.com
--
Read our founder's story.
<https://collectivehealth.com/blog/started-collective-health/>
*This message may contain confidential, proprietary, or protected
information. If you are not the intended recipient, you may not review,
copy, or distribute this message. If you received this message in error,
please notify the sender by reply email and delete this message.*
Re: Problem using SSL w/ self-signed cert?
Posted by Nicholas Hodgkinson <ni...@collectivehealth.com>.
Please disregard this question, it was apparently my load balancer
generating the errors and curl was taking some time to come back, however
it does eventually come back.
-N
nik.hodgkinson@collectivehealth.com
On Wed, Apr 5, 2017 at 6:44 PM, Nicholas Hodgkinson <nik.hodgkinson@
collectivehealth.com> wrote:
> All,
>
> I've generated a self signed certificate to use with airflow using the
> following command:
>
> openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout key.pem -out
> cert.pem -days 365
>
> However when trying to access the site from the local machine via:
>
> curl -k https://localhost
>
> curl hangs and I get this error in the webserver error log:
>
> [2017-04-06 01:40:06 +0000] [28] [ERROR] Error handling request
> Traceback (most recent call last):
> File "/usr/local/lib/python3.4/dist-packages/gunicorn/workers/sync.py",
> line 129, in handle
> req = six.next(parser)
> File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/parser.py",
> line 41, in __next__
> self.mesg = self.mesg_class(self.cfg, self.unreader, self.req_count)
> File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/message.py",
> line 153, in __init__
> super(Request, self).__init__(cfg, unreader)
> File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/message.py",
> line 53, in __init__
> unused = self.parse(self.unreader)
> File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/message.py",
> line 165, in parse
> self.get_data(unreader, buf, stop=True)
> File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/message.py",
> line 156, in get_data
> data = unreader.read()
> File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/unreader.py",
> line 38, in read
> d = self.chunk()
> File "/usr/local/lib/python3.4/dist-packages/gunicorn/http/unreader.py",
> line 65, in chunk
> return self.sock.recv(self.mxchunk)
> File "/usr/lib/python3.4/ssl.py", line 754, in recv
> return self.read(buflen)
> File "/usr/lib/python3.4/ssl.py", line 643, in read
> v = self._sslobj.read(len or 1024)
> ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number
> (_ssl.c:1769)
>
> I did some looking online and couldn't find anything that pointed me in
> the right direction to fix this. I can't tell if this is a problem with my
> cert, a bug in airflow, or something else.
>
> Thanks,
> -N
> nik.hodgkinson@collectivehealth.com
>
>
--
Read our founder's story.
<https://collectivehealth.com/blog/started-collective-health/>
*This message may contain confidential, proprietary, or protected
information. If you are not the intended recipient, you may not review,
copy, or distribute this message. If you received this message in error,
please notify the sender by reply email and delete this message.*