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

Custom ssl certs option for serve command #195

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

njaysoftware
Copy link
Contributor

This PR is meant to resolves #166

I left the current flag --ssl as it is, so it will still create ssl certs 'adhoc'.

I added two new flags to the sls wsgi serve command. They are --ssl-pri and --ssl-pub.
These flags take file paths to custom ssl certs that are to be used to serve the app locally over https. The syntax is --ssl-pri ~/localhost-key.pem --ssl-pub ~/localhost.pem. This will serve the app over https using these ssl certs. The ssl certs can be generated via a tool like mkcert

Also, updated the tests to keep the same code coverage as before.

* --ssl-pri and --ssl-pub are the two new commands that were added
* These commands allow for custom ssl certs to be passed to weurkzueg
  run_simple command
* --ssl command is still supported and will continue working as it does
  now.
* Updated tests for new ssl flags
@logandk logandk merged commit 0e5789b into logandk:master Oct 6, 2021
@logandk
Copy link
Owner

logandk commented Oct 6, 2021

Thanks, @njaysoftware - good work!

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.

Feature request for serve command
2 participants