As the title says I’m unable to renew a cert on a self-hosted lemmy instance. A friend of mine just passed away and he had his hands all up in this and had it working like magic. I’m not an idiot and have done a ton of the legwork to get our server running and working - but lemmy specifically required a bit of fadanglin’ to get working correctly. Unfortunately he’s not here to ask for help, so I’m turning to you guys. I haven’t had a problem with any of my other software such as nextcloud or pixelfed but for some reason lemmy just refuses to cooperate. I’m using acme.sh to renew the cert because that’s what my buddy was using when he had set this all up. I’m running apache2 on a bare metal ubuntu server.

Here’s my httpd-ssl.conf:

https://pastebin.com/YehfTPNV

Here’s some recent output from my acme.sh/acme.log:

https://pastebin.com/PESVVNg4

Here’s the terminal read out and what I’m attempting to execute:

https://pastebin.com/jfHfiaE0

If you can make any suggestions at all on what I might be missing or what may be configured incorrectly I’d greatly appreciate a nudge in the right direction as I’m ripping my hair out.

Thank you kindly for your time.

  • Sol 6 VI StatCmd@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 hours ago

    Just popping in this morning to thank everyone for their suggestions overnight. I have some stuff to look at now when I get to the office this morning. Can’t respond to every comment at the moment but I will. Just wanted to say thanks.

  • verstra@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    4 hours ago

    You’ve just reminded me to fix cert renewal on my instance. I’m using let’s encrypt & their certbot with nginx and it is great.

    Recently my nginx config got too complex, so nginx plugin stopped working correctly, because it wasn’t able to inject the config for ACME challenge correctly anymore. The solution was to manually configure location /.well-known/acme-challange to read from a local directory and configure certbot to use a local webroot directory instead of fiddling with nginx config.

    • Sol 6 VI StatCmd@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 hour ago

      This is out of my skillset but I’m sure there’s documentation online I can check out to give it a shot. We use this server for our (very) small business so I’m trying not to jack anything up worse than it is but it seems like something I could potentially tackle. Thank you.

  • running_ragged@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    ·
    8 hours ago

    Not sure if this is anything or not.

    You pasted the httpd-ssl.conf file.

    The script output is referencing httpd.conf

    I think it’s sending the challenge request via port 80 and that might be where you’re looking in the wrong place.

    • Sol 6 VI StatCmd@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 hour ago

      Thanks I’m gonna check this out first thing. I thought that was weird but I’m not sure what in httpd.conf could be interfering with the process. I will give the file a better read through and see what I can come up with - it’s a good starting point.

  • limer@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    8 hours ago

    Hi, just a guess. But

    The retryafter=86400 value is too large (> 600), will not retry anymore.

    Seems to me like the call to your server in the verification step is failing.

    Do you have port 80 blocked or stopping the call in another way ?

  • iopq@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    6 hours ago

    You can just try zeroSSL. Either add a DNS record they give you or host the file they give you, it’s much simpler

    • Sol 6 VI StatCmd@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 hour ago

      This sounds like a good backup plan and I’ll probably definitely have to resort to trying it - thank you for the suggestion.

    • Sol 6 VI StatCmd@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      10
      ·
      9 hours ago

      My friend chose it, he was old school. I don’t personally have a preference between the two but we use this server for our small business so I haven’t really wanted to risk messing everything up to switch when it’s (mostly) currently functional.