tested examples

This commit is contained in:
AJ ONeal 2018-05-16 07:22:08 +00:00
parent b9c5a26047
commit 093c2ff3c5
3 changed files with 23 additions and 8 deletions

View File

@ -1,8 +0,0 @@
#!/bin/bash
node bin/letsencrypt certonly \
--agree-tos --email 'john.doe@gmail.com' \
--standalone \
--domains example.com,www.example.com \
--server https://acme-staging.api.letsencrypt.org/directory \
--config-dir ~/letsencrypt.test/etc

6
examples/standalone.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
sudo greenlock certonly --standalone \
--acme-version draft-11 --acme-url https://acme-staging-v02.api.letsencrypt.org/directory \
--agree-tos --email jon@example.com --domains example.com,www.example.com \
--community-member \
--config-dir ~/acme/etc

17
examples/webroot.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
## create a quick server if needed
# sudo mkdir -p /srv/www/example.com
# pushd /srv/www/example.com
# sudo python -m SimpleHTTPServer 80 &
# my_pid=$!
sudo greenlock certonly --webroot \
--acme-version draft-11 --acme-url https://acme-staging-v02.api.letsencrypt.org/directory \
--agree-tos --email jon@example.com --domains example.com \
--community-member \
--root /srv/www/example.com \
--config-dir ~/acme/etc
# kill $my_pid
# popd