therootcompany / greenlock-express.js

Free SSL and Automatic HTTPS (ACME / Let's Encrypt v2 client) for node.js with Express, Connect, and other middleware systems
https://greenlock.domains
Mozilla Public License 2.0
64 stars 20 forks source link

Localhost development questions #15

Open Phoscur opened 7 months ago

Phoscur commented 7 months ago

Hi, I've used greenlock-express in one of my previous projects, and I was hoping to use it again to get a localhost certificate for development... I had a bunch of issues trying around, could not get it to work in the last days.

I'm confused, would you please give some hints what's required for a greenlock on localhost (as @coolaj86 once promised)?

Do I need to choose a domain and add it to my hosts file or even my own DNS server? Do I need to use DNS-01 or could HTTP-01 also be used?

Refs, someone asking for a localhost example: https://git.rootprojects.org/root/greenlock-express.js/issues/66

And the Main Readme Example table entry is still 404:

Localhost coming someday (ask to help create this) how to use DNS-01 for domains that resolve to private networks, such as 127.0.0.1

developers-solutions commented 7 months ago

Also looking for any solutions for localhost domains.

This is what we got from developer:

You have to use a proper localhost domain. I'd suggest using DuckDNS DNS-01 and manually setting a 127.0.0.1 address at the record.

Please update on any news, I will do the same. This will help community to grow

mmitchellg5 commented 1 week ago

has @coolaj86 abandoned this

please say no, @coolaj86