mirror of
https://git.coolaj86.com/coolaj86/greenlock-cli.js
synced 2025-02-23 11:38:05 +00:00
18 lines
468 B
Bash
18 lines
468 B
Bash
|
#!/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
|