Skip to content

Instantly share code, notes, and snippets.

@tracend
Last active November 11, 2015 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tracend/5d96b63d05ab89b03255 to your computer and use it in GitHub Desktop.
Save tracend/5d96b63d05ab89b03255 to your computer and use it in GitHub Desktop.
Lets Encrypt notes

Manual:

./letsencrypt-auto certonly -a manual -d {{domain.com}} \
  --server https://acme-v01.api.letsencrypt.org/directory --agree-dev-preview

(same, single line)

./letsencrypt-auto certonly -a manual -d {{domain.com}} --server https://acme-v01.api.letsencrypt.org/directory --agree-dev-preview

Server:

./letsencrypt-auto certonly -a standalone \
  -d {{domain.com}} -d www.{{domain.com}} \
  --server https://acme-v01.api.letsencrypt.org/directory --agree-dev-preview

(same, single line)

./letsencrypt-auto certonly -a standalone -d {{domain.com}} -d www.{{domain.com}} --server https://acme-v01.api.letsencrypt.org/directory --agree-dev-preview

===

NginX config:

server {
...
location /.well-known/ {
  default_type text/plain;
  charset off;
}
...
}

===

Apache config:

AddType 'text/plain' *

===

To update your Let's Encrypt client, you can simply use git pull, as follows:

cd letsencrypt
git pull
./letsencrypt-auto --agree-dev-preview --server https://acme-v01.api.letsencrypt.org/directory15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment