There are some services that I expose to the internet (using Apache reverse proxy) that really should be accessed by only a small set of devices. Requiring client certificates seems like a great way to reduce the attack surface and prevent brute force attacks (since the attacker doesn’t even get a chance to attempt a login).

I wonder about the difficulty on the client side as well as other practical implications. The clients are smartphones of various makes.

  • surewhynotlem@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 hours ago

    In caddy, isn’t an OR is just two separate blocks?

    @authorized { header X-Custom-Pass “LONGRANDOMKEY01” # jim } @authorized { header X-Custom-Pass “LONGRANDOMKEY02” # Bob }

    I could be wrong. Caddy config is a dark art.

    • lemmyvore@feddit.nl
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      4 hours ago

      Lol I don’t know, I’ll have to try. I would’ve never thought of it. If it works it’s definitely not intuitive. Dark art indeed.