Renewing certificate with Letsencrypt docker

    • OMV 4.x
    • Renewing certificate with Letsencrypt docker

      I've got Nextcloud/Letsencrypt working perfectly... Got an email today saying my Letsencrypt cert is going to expire and needs to be renewed. Are there instructions somewhere on how to do this?
      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • Really that's it?

      Do I need to do this the day the cert expires, or does it happen anytime the container is restarted? I usually shut down my NAS during the evening while I work... so does it update every time I boot my NAS or does it just update once it expires?

      I figured w/ the email I was getting that I was going to have to do something.
      Air Conditioners are a lot like PC's... They work great until you open Windows.

    • I renewed Letsencrypt last night. There is a plug-in for that that is suppose to manage re-certs automatically but I never figured out how to set it up. I didn’t know what to use as a file path.

      I can’t remember who gave these steps on the forum but they have worked for me. This will work for any docker you wish to upgrade. Before you do anything back up your system drive/stick/card so you will have a way to back out of a mistake.

      I also like to take a screen shot of the current container so I can recall the settings. Select the container and click the modify button to take some screenshots. When finished, cancel out of the container so as not to change anything or you are toast. Now, here’s the list:

      1. Pull the image from docker hub. Don’t forget to insert the correct tag.
      2. The container still runs on your older version and the name of the old image turns into a hash.
      3. Stop the old container.
      4. Select this container and press copy and give it a new name because you can't use the old name. When finished save the container.
      5. Delete the old container.
      6. Delete the old image.
      7. Update containers that use this container as a mounted volume (like plex uses delunge, Radarr and Sonarr mounted volumes from other containers)
      8. Last of all, for Letsencrypt, go to your command line and enter docker logs -f letsencrypt (or whatever you named the new container).

      That did it for me. Your mileage may vary. Someone; anyone; chime in and correct me if I’m wrong.

      One thing I recall when filling in the new container is that most of the lines will already be filled in. In the Mode field at the top my-net will be there. Change that to Bridge. That field picks up the extra argument from the bottom of the form once the container is saved.
      Retired. Love to garden and mess with computers. The more I mess with both the less I know about either.
      OMV 4.1.14-1, Odroid hc2 w/ 4TB WD Blue.