47
submitted 1 month ago* (last edited 1 month ago) by interdimensionalmeme@lemmy.ml to c/firefox@lemmy.ml

I'm just so annoyed of fighting this all the time.

If I can't figure this out I'm going to disable all https redirecting and all certificate errors off so I can have some peace

EDIT: I do not wish to manage certificates I do not want to setup private key infrastructure I don't want to use real internet domain names I don't want to manually install certificates into browsers after fishing them out of my ephemeral virtual machines

I just want to, add exception for *.lan for https auto redirect and auto-accept self-signed certificates as valid. This is not much to ask.

you are viewing a single comment's thread
view the rest of the comments
[-] cmnybo@discuss.tchncs.de 20 points 1 month ago

You can get rid of the certificate errors by adding your CA to Firefox. Just make sure you keep the private key secure.

Set browser.fixup.fallback-to-https to false to stop Firefox from trying https if http doesn't work.

[-] pupbiru@aussie.zone 3 points 1 month ago

worth repeating the KEEP YOUR PRIVATE KEY SECURE part if you’re trusting a root - if you trust a root, it may be able to issue a TRUSTED cert for other domains - mybank.com, etc and leave you open to attack

[-] sugar_in_your_tea@sh.itjust.works 2 points 1 month ago

But honestly, you shouldn't need to do this, you can just use LetsEncrypt to get a real cert. Here's what I do:

  1. route external traffic to your devices - I use a VPS w/ a VPN because I'm behind CGNAT, but if you have a publicly routable address, you can probably just use your router
  2. configure LetsEncrypt for your services
  3. configure the DNS your router provides to swap the public IP (i.e. the one for your VPS if you have it) to your LAN address, and have all of your devices use that DNS name

Boom, you get all the benefits of a proper TLS setup, along with all of the benefits of local traffic. You can even turn off external access to the services between cert renewals.

this post was submitted on 14 Sep 2024
47 points (91.2% liked)

Firefox

17303 readers
20 users here now

A place to discuss the news and latest developments on the open-source browser Firefox

founded 4 years ago
MODERATORS