this post was submitted on 27 Jul 2023
4 points (100.0% liked)

Selfhosted

40198 readers
961 users here now

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!

founded 1 year ago
MODERATORS
 

I am hosting few services for my friends and family on my server. Due to devices limitations, I can't install VPN on TVs etc. Is it possible to restrict the access to only those users that have a certificate issued by me?

you are viewing a single comment's thread
view the rest of the comments
[–] trimmerfrost@lemm.ee 1 points 1 year ago (2 children)

Use mTLS (mutual TLS) also called client certificates with nginx or whatever your webserver is

[–] WhyAUsername_1@lemmy.world 1 points 1 year ago

Superb. Planning to implement this with Caddy. Nginx was having performance issues , last time I configured it. Maybe I didn't configure it well..

Will try nginx as reverse proxy if Caddy doesn't work well for mTLS.

[–] amp@kbin.social 0 points 1 year ago (1 children)

mtls over nginx is the simplest way. but be aware that while it works great on desktop browsers, other reduced browsers (incl mobile) often don't support it.

[–] trimmerfrost@lemm.ee 1 points 1 year ago

It works on Android using Chromium based browsers too. You have to install your client certificate in the Android Settings. When you visit the site using a chromium based browser, it will ask you to verify yourself using the installed certificate. I used to use it in the past

Unfortunately it doesn't work with Firefox on Android. Don't know anything about iOS