Set up SSL

Installation

1. Install Brew if not installed.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install  )"

2. Install Certbot

brew install certbot

3. Create a script getcert.sh

4. Test the script

sh getcert.sh -t -d example.com -f /Users/matthiasbuercher/Dropbox/public_html/example.com

5. Use the script to create certificate

sh getcert.sh -d example.com -f /Users/matthiasbuercher/Dropbox/public_html/example.com

5. Use the script to renew certificate

sh getcert.sh -r -d example.com -f /Users/matthiasbuercher/Dropbox/public_html/example.com

6. Go to Server app, certificates.
The certificates should show up.
Renew will create new certificates.
Note: Anyone knows how to renew .p12 files instead of reimporting them?

7. Go to websites, set certificate for server
For renew, set to none, delete old certificate, set new certificate.