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

Simpler run configurations without config file + tls instructions #32

Open
colemickens opened this issue Jun 15, 2022 · 3 comments
Open
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@colemickens
Copy link
Contributor

binserve seems really great but I really wish it were a bit easier to use:

  1. It would be really great to be able to just do binserver --auto-self-signed-tls --dir ./www and have it generate a self-signed key/cert and serve from the directory.
  2. I have no idea how to generate certs/keys for this. I have my openssl one-liner and if I try to use that I get:
[cole@slynux:~/code/webrtcsink]$ openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365                                                                        
redacted....


[cole@slynux:~/code/webrtcsink]$ binserve
[INFO] Build finished in 485 μs ⚡
[INFO] Enabled TLS (HTTPS) 🔒
[SUCCESS] Your server is up and running at 0.0.0.0:8001 🚀
[ERROR] Could not locate PKCS 8 private keys.
@colemickens
Copy link
Contributor Author

It seems like if I convert the PEM key like this, it will work:

openssl pkcs8 -topk8 -inform PEM -outform PEM -nocrypt -in key.pem -out key8.pem

and switching the key file to point to key8.pem of course.

@colemickens
Copy link
Contributor Author

#33 helps with this by adding basic openssl generation docs

@mufeedvh
Copy link
Owner

Hey @colemickens, thank you so much for opening this issue and the PR. I should've added more details on the TLS part.

I will use this as a tracking issue to add --auto-self-signed-tls --dir ./www options/feature so it would be a lot easier, thanks for the idea! 🙌

@mufeedvh mufeedvh added enhancement New feature or request good first issue Good for newcomers labels Jun 15, 2022
@mufeedvh mufeedvh added this to the v0.2.1 milestone Jul 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants