From 5231bb940189f4d7688184d71fc6fb93cf724afa Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 16 Dec 2015 05:02:09 -0800 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1623856..ed7e46b 100644 --- a/README.md +++ b/README.md @@ -45,19 +45,20 @@ letsencrypt certonly \ --domains example.com,www.example.com \ --server https://acme-staging.api.letsencrypt.org/directory \ -ls ~/letsencrypt/etc +ls ~/letsencrypt/etc/live ``` ### WebRoot ```bash -letsencrypt certonly \ +sudo letsencrypt certonly \ --agree-tos --email john.doe@example.com \ --webroot --webroot-path /srv/www/acme-challenge \ + --config-dir /etc/letsencrypt \ --domains example.com,www.example.com \ --server https://acme-staging.api.letsencrypt.org/directory -ls ~/letsencrypt/etc +ls /etc/letsencrypt/live/ ``` ## Run without Root @@ -70,6 +71,15 @@ you can use `setcap` to do so. (it may need to be run any time you reinstall nod sudo setcap cap_net_bind_service=+ep /usr/local/bin/node ``` +By default `node-letsencrypt` assumes your home directory `~/letsencrypt/`, but if +you really want to use `/etc/letsencrypt`, `/var/lib/letsencrypt/`, and `/var/log/letsencrypt` +you could change the permissions on them. **Probably a BAD IDEA**. Probabry a security risk. + +``` +# PROBABLY A BAD IDEA +sudo chown -R $(whoami) /etc/letsencrypt /var/lib/letsencrypt /var/log/letsencrypt +``` + ## Command line Options ```