I’ve been trying to get a wildcard certificate for my domain for use in Caddy…

i’ve got caddy installed and working fine but it seems i need to build caddy manually to include the cloudflaredns module?

My issue is that i installed caddy using apt… so i’m not really sure what i’m meant to do now…

Does anyone have any suggestions?

  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Wildcard SSL certs are usually generated via a DNS-01 challenge, which are unrelated to the web-server you are using. Maybe Caddy has a special function for it, but normally it wouldn’t be involved at all.

    • Perhyte@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Caddy does have special support for DNS-01, but only if you compile in a module for your DNS provider.

  • terribleplan@lemmy.nrd.li
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    The whole “build it yourself” strategy with plugins and stuff is why I moved over to Traefik. I think you’ll basically need to follow this doc to build it yourself while still using the apt package for all the niceties like Systemd units and such.

    • Perhyte@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      You usually don’t actually need to build it yourself: you can get a binary with that module from the official download page which automates (and IIRC caches) the build.

      However, as noted at the top of that page, there’s currently an issue where that page occasionally fails, which is unfortunate.

      • D4NM3D@reddthat.comOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 year ago

        If the download actually works… which i’ll try in a minute… how can i move from my apt installed version to using this binary?

        Edit… so i’ve ended up with a file with no extension…

        caddy_linux_amd64_custom
        
    • cnschn@lemmy.cnschn.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I was a bit weirded out by this as well, but honestly - it’s pretty straightforward and has been working just fine for me. shrug