Skip to content

Instantly share code, notes, and snippets.

@waynegraham
Last active September 30, 2017 00:08
Show Gist options
  • Save waynegraham/9fde4a5f79a194ca4a0477d1f8faa317 to your computer and use it in GitHub Desktop.
Save waynegraham/9fde4a5f79a194ca4a0477d1f8faa317 to your computer and use it in GitHub Desktop.

Let's Encrypt Cert on MediaTemple

Taken from https://mediatemple.net/community/products/grid/208603976/install-a-let's-encrypt-ssl

  • Go to https://gethttpsforfree.com/

  • Account Email: info@diglib.org

  • Account Public Key: cd ~/ssl/ && openssl rsa -in account.key -pubout

  • Step 2: Certificate Signing Request Run generate_csr.sh and paste the output to the terminal. Take that output and put it in the web form.

    openssl req -new -sha256 -key www.diglib.org.key -subj "/" -reqexts SAN -config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:www.diglib.org,DNS:diglib.org"))

    This is needed to get both www.diglib.org and diglib.org.

  • Run the rest of the commands for the API requests

  • Put the files it wants to read in ~/domains/diglib.org/html/.well-known/acme-challenge with the key output in the file (echo serve-this-content > ~/domains/diglib.org/html/.well-known/acme-challenge/filename).

  • Check that the URL works...

  • Keep going with the copy-n-pasting fields

  • When you're done, paste in the CSR, key, and chain certificates...

If everything goes well, it'll say it was imported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment