cs01 / termpair

View and control terminals from your browser with end-to-end encryption 🔒
MIT License
1.61k stars 72 forks source link

Secret encryption key is not valid #88

Closed dualven closed 3 years ago

dualven commented 3 years ago

Describe the bug I follow the instruction to run the programe , but at the last step , it says : secret encryption key is not valid ... could you give me some advise?

image

cs01 commented 3 years ago

Maybe doublecheck it is entered correctly?

Can you share all the text printed by the termpair share command (and remove anything you don’t want to share)? Have you tried going to the url printed by the share command?

dualven commented 3 years ago

Shareable link: http://10.60.100.192:8001/?terminal_id=62b2f7510cfbc61a2abe13b97ed97297#ZMF8MChBsMSICwG0hEe0UQ== Then I open browse with the url . fill the blank with “62b2f7510cfbc61a2abe13b97ed97297” and "ZMF8MChBsMSICwG0hEe0UQ==" . is there anything wrong ?
I open the browse at another PC with ip 10.60.2.193 .

cs01 commented 3 years ago

The page has to be served over https to work. For some reason the error message saying so isn't showing. I'll have to fix that.

To fix, you must run the server with --certfile and --keyfile.

 To generate an SSL certificate and private key,
run `openssl req -newkey rsa:2048 -nodes -keyout host.key -x509 -days 365 -out
host.crt`. To skip questions and use defaults, add the `-batch` flag. You can
ignore warnings about self-signed certificates since you know you just made
it. Then use them, pass the '--certfile' and '--keyfile' arguments.

See termpair serve --help for more info.

cs01 commented 3 years ago

If you upgrade to v0.3.1.4 the error message is improved

dualven commented 3 years ago

thanks , it is ok now !!