greenlock-cli.js/examples/webroot.sh

18 lines
468 B
Bash
Raw Normal View History

2018-05-16 07:22:08 +00:00
#!/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