-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
🔒 Feature Request - Automatic SSL certs with mkcert #309
Comments
@the0neyouseek Hi, this feature came into my mind 2 years ago. And I remember it was also mentioned in other quite a few issues as well. That was why I started this alternative tool and started using it since. https://github.com/layerssss/localhostd It has gone through my own trial and fixes these 2 years and had a few additional features including trustable SSL built in. So I'm now inviting everyone to try it as well. |
Which names did you use when creating the cert with |
@shreyasminocha Here's the command I've used : It's a bit of cumbersome process to do this manually and I would prefer it if hotel generated the cert itself on every domain creation/removal but it works. |
@the0neyouseek Thanks! I thought there was some shorthand that worked with all
Agreed. |
Here's a one-liner that works for me: ls ~/.hotel/servers | sed -E 's/\.json/.localhost/g' | tr '\n' ' ' | xargs mkcert -key-file ~/.hotel/key.pem -cert-file ~/.hotel/cert.pem 'localhost' '127.0.0.1' '0.0.0.0' 'hotel.localhost' One could potentially hook this up to some filesystem watcher and run it each time new files are added to |
Hi @typicode !
First and foremost, thanks for the useful tool. I use it almost every day at work and it's been amazingly great so far, kudos 🙏 !
Would it be possible to integrate something such as @FiloSottile/mkcert to have automatic ssl certs generated when we
add
orremove
a server ?I've done it manually (replacing
cert.pem
andkey.pem
in the.hotel
dir with themkcert
generated ones) and it's working perfectly but I would prefer for it to be automated/built in…Thanks and have a nice day !
The text was updated successfully, but these errors were encountered: