How do you use this?
dwjohnston opened this issue · comments
There are no instructions for actually using this.
Download the release zip from https://github.com/ctcherry/tlself/releases/
Unpack the zip and put the resulting binary called "tlself" where-ever you want, its pretty self contained
Start up the app or website you are working on, on some port locally, let's say its running on port 3000 on localhost.
Make sure nothing is running on localhost 443.
In a separate terminal cd to where you have tlself unpacked and then run sudo BACKEND=127.0.0.1:3000 ./tlself
it will prompt for your sudo password because it is listening on 443 which is a privileged port.
You now have a web server listening at https://localhost that will serve a trusted/valid https cert for your app you are working on locally.
If you want to use a domain other than "localhost" for testing, you can edit your /etc/hosts file and add it there, pointed to 127.0.0.1. You can then access https://thedomainyouadded.com, tlself will automatically update the cert and it will be valid as well.
I hope this helps, let me know if you have any questions.