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

Tls cert bugfix #262

Merged
merged 2 commits into from
May 1, 2017
Merged

Tls cert bugfix #262

merged 2 commits into from
May 1, 2017

Conversation

montag
Copy link
Contributor

@montag montag commented Apr 30, 2017

What does this PR do?

This fix adds the required dependencies to the docker and pip configs to support TLS for the web demo.

It also includes pre-generated self-signed certs that will expire in ten years and removes the call to create-certs.sh from install-deps.sh. This avoids users having to actually create the certs unless the want to.

Where should the reviewer start?

How should this PR be tested?

Run the docker image (after it's been created). The demo webapp should start properly with no openssl related errors. The docker url is now https://docker_ip:8000

I tested it on win10, I can test it again once the docker image is rebuilt.

Any background context you want to provide?

Docker was missing a few required libraries to support TLS in python. Also the install-deps script which created the certs is not included in the docker config so it was never generating the certs. To avoid the extra complication of creating the certs, I just opted for including pre-generated long lived certs with the option of generating new ones (via create-cert.sh)

What are the relevant issues?

#261

Screenshots (if appropriate)

Questions:

  • Do the docs need to be updated?

Yes (the url is now https not http)

  • Does this PR add new (Python) dependencies?

Yes it adds both OS package and python packages

montag added 2 commits April 30, 2017 09:36
…signed certs that expire in 10 years. Removed automatic cert generation from install-deps.sh. Updated create-cert.sh to manually generate 10year certs (or any custom duration).
@bamos bamos merged commit 47afcbf into cmusatyalab:master May 1, 2017
@bamos
Copy link
Collaborator

bamos commented May 1, 2017

Thanks! Unfortunately it looks like the Docker Hub auto-build has failed with the new image. Were you able to build the image on your system?

https://hub.docker.com/r/bamos/openface/builds/bfcrr2vshnkackznkqgwoqw/

@montag
Copy link
Contributor Author

montag commented May 1, 2017

Sorry about that. This should be working. I'll do some more testing and see what the problem is.

sunnylgz pushed a commit to sunnylgz/openface that referenced this pull request Dec 28, 2017
* Bugfix for systems that cannot generate openssl certs. Includes self-signed certs that expire in 10 years. Removed automatic cert generation from install-deps.sh. Updated create-cert.sh to manually generate 10year certs (or any custom duration).

* Docker config changes to support web demo TLS
liuwanjin365 pushed a commit to liuwanjin365/openface that referenced this pull request Apr 28, 2021
* Bugfix for systems that cannot generate openssl certs. Includes self-signed certs that expire in 10 years. Removed automatic cert generation from install-deps.sh. Updated create-cert.sh to manually generate 10year certs (or any custom duration).

* Docker config changes to support web demo TLS
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

Successfully merging this pull request may close these issues.

2 participants