tehmoon / cryptocli

The ultimate tool for data transfer, manipulation and proxy.
MIT License
16 stars 2 forks source link

Generate self signed cert for tcp/http/websocket servers #48

Closed tehmoon closed 4 years ago

tehmoon commented 4 years ago

Grab the logic from https://gist.github.com/tehmoon/507f331abb6357dfeedd33356f4baca1 and set a flag to generate a self signed certificate. The fingerprint of the public key should be output in the logs at startup.

tehmoon commented 4 years ago

Superseded by #56 . No module will have tls capability. The idea is to use the dedicated tls module and proxy to the right server module. Something like this:

-- tls --mode endpoint --connect-to localhost:8080 --listen :443 \
-- http-server --addr :8081