For instance how can I use my *.domain.com SSL certs and NPM to route containers to a subdomain without exposing them? The main domain is exposed.

@wildbus8979@sh.itjust.works
link
fedilink
English
14
edit-2
3d

You can use the DNS verification method. Either using nsupdate with bind or what ever protocol your DNS provider and favorite ACME (certbot, acme, lego, etc) utility supports. As long as your DNS server is publically reachable that will work, even if the subdomain itself doesn’t exist publically.

@thumdinger@lemmy.world
link
fedilink
English
53d

This is what I do as well. I have a public DNS record for my internal reverse proxy IP (no need to expose my public IP and associate it with my domain). I let NPM reach out to the DNS provider to complete verification challenge using an account token, NPM can then get a valid cert from Let’s Encrypt and nothing is exposed. All inbound traffic on 80/443 remains blocked as normal.

This is the way.

Vastly superior to local dns.

This is specifically info about LetsEncrypt, not general SSL.

@wildbus8979@sh.itjust.works
link
fedilink
English
5
edit-2
3d

Yes my answer is for use with Let’s Encrypt.

I don’t really understand what you’re getting at. The answer to OPs question is to use letsencrypt like everyone else.

They literally didn’t mention LE at all.

SSL is not LetsEncrypt, if you didn’t know.

Max-P
link
fedilink
English
33d

To add: a lot of cert providers also offer ACME so while the primary user of ACME is LetsEncrypt, you can use the same tech and validations as LetsEncrypt on other vendors too.

deleted by creator

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 171 users / day
  • 422 users / week
  • 1.04K users / month
  • 3.77K users / 6 months
  • 1 subscriber
  • 3.9K Posts
  • 79.1K Comments
  • Modlog