Success! The live .sh file generated the necessary files and I was able to assign the Let’s Encrypt certificate in the Server app!
To recap, in hopes this may help others:
This tutorial is helpful to download and install a certificate from Let’s Encrypt for a website (in my case, a company Wiki) hosted on a Mac with Server app. There are three edits that you should be aware of, though:
-
As of OS X 10.11.6 and Server 5.2, the default root directory for the Wiki (and likely other websites hosted by Server) is /Library/Server/Web/Data/Sites/Default
-
Line 3 of the
get_cert.sh
file needs to be edited so that no space exists between the equal sign and the value(s) you enter for YOUR_DOMAIN. -
Make sure the
cert.ini
file is in the working directory of the commands your executing in Terminal. The easiest method for that is probably just to cd to the folder which your cert.ini and get_cert.sh files are stored. -
As mentioned by @schoen, upon creating the
get_cert.sh
file, run the commandchmod +x
on the file to allow it to be executable. Run the same command on any copies made of theget_cert.sh
file, for instance if you have one .sh file for dry runs and another for a live run.
Hopefully, this will be helpful to others.