Browse Source

fixed #4, specify an output file for wget to prevent clobbering

Daniel Roesler 9 years ago
parent
commit
338f7bedaf
1 changed files with 4 additions and 4 deletions
  1. 4 4
      README.md

+ 4 - 4
README.md

@@ -96,8 +96,8 @@ configure an nginx server:
 
 ```
 #NOTE: For nginx, you need to append the Let's Encrypt intermediate cert to your cert
-wget https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem
-cat signed.crt lets-encrypt-x1-cross-signed.pem > chained.pem
+wget -O - https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem > intermediate.pem
+cat signed.crt intermediate.pem > chained.pem
 ```
 
 ```nginx
@@ -142,8 +142,8 @@ Example of a `renew_cert.sh`:
 ```sh
 #!/usr/bin/sh
 python /path/to/acme_tiny.py --account-key /path/to/account.key --csr /path/to/domain.csr --acme-dir /var/www/challenges/ > /path/to/signed.crt
-wget https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem
-cat /path/to/signed.crt lets-encrypt-x1-cross-signed.pem > /path/to/chained.pem
+wget -O - https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem > intermediate.pem
+cat /path/to/signed.crt intermediate.pem > /path/to/chained.pem
 service nginx reload
 ```