Lurker News

Comments (115) 39 threads

Earlier comments
mic1593 replies#
What's wrong with Lets Encrypt and DNS challenge? Then you get a globally recognised cert.
alphabettsy#
Nothing, but thats not what this is for at all.
MehdiHK2 replies#
You cannot use them for localhost
jimdigriz#
Seems a lot easier to register your own domain (useful for so many other things), point localhost.mydomain.com to 127.0.0.1 and run:

    sudo apt-get -yy install --no-install-recommends certbot
    mkdir -p le
    certbot --work-dir ./le --logs-dir le --config-dir le -d localhost.mydomain.com --manual --preferred-challenges dns certonly
Follow the instructions adding the TXT record, you have a valid cert in minutes.
mic159#
Yes you can. You control the DNS, just point that subdomain to 127.0.0.1.
thechriswalker1 reply#
That's what I use, Caddy webserver with Gandi DNS (also used Route53 in the past) handling the ACME challenge and a `*.l.mydomain.tld` pointing to 127.0.0.1.

Adding reverse proxies for different local services becomes a piece of cake, but mkcert allows you to use `localhost` directly if needed. Personally I never have and like not having to make any changes to the trust store.

mic159#
Why do you need a reverse proxy? The DNS challenge works without https.
groovypuppy#
YES! Thank you. As an indie PWA developer this is exactly what I've been looking for.
kzahel1 reply#
Does anyone know if there's a publicly available domain that does RFC1918 resolutions? Such as

  192-168-86-30.localresolve.com has A record 192.168.86.30
  10-10-10-1.localresolve.com has A record 10.10.10.1
and so on.
lioeters#
Might be close:

http://lvh.me is a free service that resolves itself along with all subdomains to localhost.
Edit: http://nip.io/ looks like it does exactly what you asked.

alexandernst1 reply#
Will it work inside a Docker container and my browser in my bare metal?
FiloSottile#
As long as you run "mkcert -install" where the client/browser runs, you can use the certificates it generates in whatever deployment you like. If instead you want to run it 100% inside Docker, but your browser is outside, you'll have to manually install the root from "mkcert -CAROOT".

Load more comments