Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'sslv3 alert handshake failure' when running doorman on docker #110

Open
alexpacio opened this issue Aug 10, 2017 · 2 comments
Open

'sslv3 alert handshake failure' when running doorman on docker #110

alexpacio opened this issue Aug 10, 2017 · 2 comments

Comments

@alexpacio
Copy link

alexpacio commented Aug 10, 2017

If I build a doorman container leveraging on your Dockerfile and I try to connect osqueryd to that doorman instance, I get this errors:

tls_enroll.cpp:75] Failed enrollment request to https://doorman:5000/enroll (Request error: sslv3 alert handshake failure) retrying...

This is the full log:
device_output.txt

Instead, if I try to run doorman in my host system, it does work flawlessly.

FYI, in my host system i'm using Fedora 25 x64.

@alexpacio alexpacio changed the title Can't connect with osquery when running doorman on docker 'sslv3 alert handshake failure' when running doorman on docker Aug 10, 2017
@maximcherny
Copy link

The gunicorn launch arggs in docker/service/api/run seem to also expect:

...
    --keyfile ./private.key \
    --certfile ./certificate.crt \
...

Assuming these have been provided (or self-generated), the container runs fine upon a rebuild.

Alternatively, one would need to tweak the app code / config to disable https redirection for testing purposes, need a better way of handling this for production.

@maximcherny
Copy link

And then it also expects the Postgres DB to be fully migrated, so one could fix that by issuing the following command in the container:

cd /src
export DOORMAN_SETTINGS=$PWD/settings.cfg && python manage.py db upgrade

But it should really be part of the service run definition imho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants