From 093c2ff3c5f2fdbf45143135326b6116c8672e90 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 16 May 2018 07:22:08 +0000 Subject: [PATCH] tested examples --- example-standalone.bash | 8 -------- examples/standalone.sh | 6 ++++++ examples/webroot.sh | 17 +++++++++++++++++ 3 files changed, 23 insertions(+), 8 deletions(-) delete mode 100755 example-standalone.bash create mode 100755 examples/standalone.sh create mode 100644 examples/webroot.sh diff --git a/example-standalone.bash b/example-standalone.bash deleted file mode 100755 index db7e3a6..0000000 --- a/example-standalone.bash +++ /dev/null @@ -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 diff --git a/examples/standalone.sh b/examples/standalone.sh new file mode 100755 index 0000000..e519d3b --- /dev/null +++ b/examples/standalone.sh @@ -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 diff --git a/examples/webroot.sh b/examples/webroot.sh new file mode 100644 index 0000000..3c8602d --- /dev/null +++ b/examples/webroot.sh @@ -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