2016-12-30 02:39:55 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								<!--  BANNER_TPL_BEGIN  -->  
						 
					
						
							
								
									
										
										
										
											2016-12-30 02:22:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								About Daplie: We're taking back the Internet!
							 
						 
					
						
							
								
									
										
										
										
											2016-11-01 18:26:25 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								--------------
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-12-30 02:22:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Down with Google, Apple, and Facebook!
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								We're re-decentralizing the web and making it read-write again - one home cloud system at a time.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Tired of serving the Empire? Come join the Rebel Alliance:
							 
						 
					
						
							
								
									
										
										
										
											2016-11-01 18:26:25 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-12-30 02:22:49 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< a  href = "mailto:jobs @daplie .com" > jobs@daplie .com</ a >  | [Invest in Daplie on Wefunder ](https://daplie.com/invest/ ) | [Pre-order Cloud ](https://daplie.com/preorder/ ), The World's First Home Server for Everyone 
						 
					
						
							
								
									
										
										
										
											2016-11-01 18:26:25 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-12-30 02:39:55 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								<!--  BANNER_TPL_END  -->  
						 
					
						
							
								
									
										
										
										
											2016-11-01 18:26:25 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-01-14 20:47:11 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# greenlock-cli (letsencrypt-cli for node.js)
  
						 
					
						
							
								
									
										
										
										
											2016-11-01 18:26:25 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-04-22 12:14:29 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								[](https://gitter.im/Daplie/letsencrypt-express?utm_source=badge& utm_medium=badge& utm_campaign=pr-badge& utm_content=badge)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								| [greenlock (library) ](https://git.daplie.com/Daplie/node-greenlock )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| **greenlock-cli** 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| [greenlock-express ](https://git.daplie.com/Daplie/greenlock-express )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| [greenlock-koa ](https://git.daplie.com/Daplie/greenlock-koa )
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								| [greenlock-hapi ](https://git.daplie.com/Daplie/greenlock-hapi )
							 
						 
					
						
							
								
									
										
										
										
											2016-04-22 12:17:29 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								|
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								CLI for node-greenlock modeled after the official client.
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 01:16:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 04:00:27 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  Free SSL Certificates 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  90-day certificate lifetime 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  One-off standalone registration / renewal 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  On-the-fly registration / renewal via webroot 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:01:10 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Install Node
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:01:30 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								For **Windows** :
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:01:10 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Choose **Stable**  from < https: // nodejs . org / en /> 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:01:30 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								For Linux and **OS X** :
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:01:10 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2016-08-09 17:10:02 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								curl -L bit.ly/nodejs-min | bash
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:01:10 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# Install Greenlock
  
						 
					
						
							
								
									
										
										
										
											2015-12-16 01:16:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								npm install -g greenlock-cli@2 .x
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 01:16:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## Usage
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:06:33 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								These commands are shown using the **testing server** .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 14:30:56 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Want to use the **live server** ?
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-21 09:51:03 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								1.  change server to `--server https://acme-v01.api.letsencrypt.org/directory`  
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:06:33 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								**Note**: This has really only been tested with single domains so if
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								multiple domains doesn't work for you, file a bug.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Standalone (primarily for testing)
  
						 
					
						
							
								
									
										
										
										
											2015-12-16 01:16:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-08 15:16:26 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You can run standalone mode to get a cert **on the server** . You either use an
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								http-01 challenge (the default) on port 80, or a tls-sni-01 challenge on port
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								443 (or 5001). Like so:
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 01:16:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								greenlock certonly \
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 01:16:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --agree-tos --email john.doe@example .com \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --standalone \
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:06:33 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --domains example.com,www.example.com \
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:16:25 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --server https://acme-staging.api.letsencrypt.org/directory \
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --config-dir ~/letsencrypt/etc
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-08 15:16:26 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								or
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								greenlock certonly \
							 
						 
					
						
							
								
									
										
										
										
											2016-10-08 15:16:26 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --agree-tos --email john.doe@example .com \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --standalone --tls-sni-01-port 443 \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --domains example.com,www.example.com \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --server https://acme-staging.api.letsencrypt.org/directory \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --config-dir ~/letsencrypt/etc
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Then you can see your certs at `~/letsencrypt/etc/live` .
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 04:58:05 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 05:02:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								ls ~/letsencrypt/etc/live
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 01:16:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								This option is great for testing, but since it requires the use of
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								the same ports that your webserver needs, it isn't a good choice
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								for production.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### WebRoot (production option 1)
  
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You can specify the path to where you keep your `index.html`  with `webroot` , as
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								long as your server is serving plain HTTP on port 80.
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								For example, if I want to get a domain for `example.com`  and my `index.html`  is
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								at `/srv/www/example.com` , then I would use this command:
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 01:16:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								sudo greenlock certonly \
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 01:16:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --agree-tos --email john.doe@example .com \
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --webroot --webroot-path /srv/www/example.com \
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 05:02:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --config-dir /etc/letsencrypt \
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:06:33 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --domains example.com,www.example.com \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --server https://acme-staging.api.letsencrypt.org/directory
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Note that we use `sudo`  because in this example we are using `/etc/letsencrypt` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								as the cert directory rather than `~/letsencrypt/etc` , which we used in the previous example.
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 04:58:05 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Then see your brand new shiny certs:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 05:02:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								ls /etc/letsencrypt/live/
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 01:16:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 11:01:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-19 20:46:24 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You can use a cron job to run the script above every 80 days (the certificates expire after 90 days)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								so that you always have fresh certificates.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Hooks (production option 2)
  
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								You can also integrate with a secure server. This is more complicated than the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								webroot option, but it allows you to obtain certificates with only port 443
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								open. This facility can work with any web server as long as it supports server
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								name indication (SNI) and you can provide a configuration file template and
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								shell hooks to install and uninstall the configuration (without downtime). In
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								fact, it doesn't even need to be a webserver (though it must run on port 443);
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								it could be another server that performs SSL/TLS negotiation with SNI.
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The process works something like this. You would run:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								sudo greenlock certonly \
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --agree-tos --email john.doe@example .com \
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --hooks --hooks-server apache2-debian \
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --config-dir /etc/letsencrypt \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --domains example.com,www.example.com \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --server https://acme-staging.api.letsencrypt.org/directory
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Three files are then generated:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  a configuration fragment: `some-long-string.conf`  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  a challenge-fulfilling certificate: `the-same-long-string.crt`  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  a private key: `the-same-long-string.key`  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								A hook is then run to enable the fragment, e.g. by linking it (it should not be
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								moved) into a `conf.d`  directory (for Apache on Debian, `sites-enabled` ). A
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								second hook is then run to check the configuration is valid, to avoid
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								accidental downtime, and then another to signal to the server to reload the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								configuration. The server will now serve the generated certificate on a special
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								domain to prove you own the domain you're getting a certificate for.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								After the domain has been validated externally, hooks are run to disable the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								configuration fragment, and again check and reload the configuration.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You can then find your brand new certs in:
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ls /etc/letsencrypt/live/
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Tailor to your server and distro using the `--hooks-server`  option. So far, the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								following are supported (contributions for additional servers welcome):
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  apache2-debian 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								To tweak it for your setup and taste, see all the `hooks-`  options in the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Command Line Options section below. Also note that the following substitutions
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								are available for use in the hooks and the template:
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  `{{{token}}}` : the token 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  `{{{domain}}}` : the domain for which a certificate is being sought (beware of 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  this if using multiple domains per certificate)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  `{{{subject}}}` : the domain for which the generated challenge-fulfilling 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  certificate must be used (only available when generating it)
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								*  `{{{cert}}}` : the path to the generated certificate: `hooks-path/token.crt`  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  `{{{privkey}}}` : the path to the generated private key: `hooks-path/token.key`  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  `{{{conf}}}` : the path to the generated config file: `hooks-path/token.conf`  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  `{{{bind}}}` : the value of the `hooks-bind`  option 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  `{{{port}}}` : the value of the `hooks-port`  option 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								*  `{{{webroot}}}` : the value of the `hooks-webroot`  option 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-08-12 00:33:39 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### Interactive (for debugging)
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The token (for all challenge types) and keyAuthorization (only for https-01)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								will be printed to the screen and you will be given time to copy it wherever
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								(file, dns record, database, etc) and the process will complete once you hit `enter` .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								sudo greenlock certonly \
							 
						 
					
						
							
								
									
										
										
										
											2016-08-12 00:33:39 -06:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  --agree-tos --email john.doe@example .com \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --manual
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --config-dir /etc/letsencrypt \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --domains example.com,www.example.com \
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  --server https://acme-staging.api.letsencrypt.org/directory
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 05:32:00 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Test with a free domain
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Install Daplie DNS
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								npm install -g ddns-cli
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# see terms of use
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ddns --help
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# agree to terms and get domain
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ddns --random --email user@example .com --agree
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 05:33:17 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# the default is to use the ip address from which
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# you can the command, but you can also assign the
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# ip manually
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ddns --random --email user@example .com --agree -a '127.0.0.1'
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 05:32:00 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Example domain:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								rubber-duck-42.daplie.me
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:16:25 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Run without Root
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								If you'd like to allow node.js to use privileged ports `80`  and `443` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								(and everything under 1024 really) without being run as `root`  or `sudo` ,
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								you can use `setcap`  to do so. (it may need to be run any time you reinstall node as well)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								sudo setcap cap_net_bind_service=+ep /usr/local/bin/node
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								By default `node-greenlock`  assumes your home directory `~/letsencrypt/` , but if
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 05:02:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								you really want to use `/etc/letsencrypt` , `/var/lib/letsencrypt/` , and `/var/log/letsencrypt` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								you could change the permissions on them. **Probably a BAD IDEA** . Probabry a security risk.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# PROBABLY A BAD IDEA
  
						 
					
						
							
								
									
										
										
										
											2016-08-09 22:39:39 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								sudo chown -R $(whoami) /etc/letsencrypt /var/lib/letsencrypt /var/log/letsencrypt
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 05:02:09 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Command Line Options
  
						 
					
						
							
								
									
										
										
										
											2015-12-16 11:01:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Usage:
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 14:42:01 -07:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  greenlock [OPTIONS] [ARGS]
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 11:01:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Options:
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 23:54:27 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --server [STRING]         ACME Directory Resource URI. (Default is https://acme-v01.api.letsencrypt.org/directory))
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 11:01:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 23:54:27 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --email EMAIL             Email used for registration and recovery contact. (default: null)
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 11:01:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --agree-tos BOOLEAN       Agree to the Let's Encrypt Subscriber Agreement
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 23:54:27 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --domains URL             Domain names to apply. For multiple domains you can enter a comma
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                separated list of domains as a parameter. (default: [])
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 11:01:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 23:54:27 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --renew-within [NUMBER]   Renew certificates this many days before expiry. (default: 7)
							 
						 
					
						
							
								
									
										
										
										
											2016-08-09 22:39:39 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 23:54:27 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --duplicate BOOLEAN       Allow getting a certificate that duplicates an existing one/is
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                an early renewal.
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 11:01:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --rsa-key-size [NUMBER]   Size (in bits) of the RSA key. (Default is 2048)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --cert-path STRING        Path to where new cert.pem is saved
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                (Default is :conf/live/:hostname/cert.pem)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --fullchain-path [STRING] Path to where new fullchain.pem (cert + chain) is saved
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                (Default is :conf/live/:hostname/fullchain.pem)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --chain-path [STRING]     Path to where new chain.pem is saved
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                (Default is :conf/live/:hostname/chain.pem)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --domain-key-path STRING  Path to privkey.pem to use for domain (default: generate new)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 23:54:27 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --account-key-path STRING Path to privkey.pem to use for account (default: generate new)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 03:17:06 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --config-dir STRING       Configuration directory. (Default is ~/letsencrypt/etc/)
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 11:01:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 23:54:27 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --tls-sni-01-port NUMBER  Use TLS-SNI-01 challenge type with this port.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                (must be 443 with most production servers) (Boulder allows 5001 in testing mode)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --http-01-port [NUMBER]   Use HTTP-01 challenge type with this port, used for SimpleHttp challenge. (Default is 80)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                (must be 80 with most production servers)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --dns-01                  Use DNS-01 challenge type.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --standalone [BOOLEAN]    Obtain certs using a "standalone" webserver.  (Default is true)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --manual [BOOLEAN]        Print the token and key to the screen and wait for you to hit enter,
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                giving you time to copy it somewhere before continuing. (Default is false)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --webroot BOOLEAN         Obtain certs by placing files in a webroot directory.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --webroot-path STRING     public_html / webroot path.
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 11:01:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --hooks BOOLEAN           Obtain certs with hooks that configure a webserver to meet TLS-SNI-01 challenges.
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --hooks-path STRING       Path in which to store files for hooks.
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                (Default is ~/letsencrypt/apache)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --hooks-server STRING     Type of webserver to configure. Sets defaults for all the following --hooks- options.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                Either --hooks-server or --hooks-template must be given.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                (See the Hooks section above for a list of supported servers.)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --hooks-template STRING   Template to use for hooks configuration file.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                                Either --hooks-server or --hooks-template must be given.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      --hooks-bind STRING       IP address to use in configuration for hooks. (Default is *)
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --hooks-port STRING       Port to use in configuration for hooks. (Default is 443)
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --hooks-webroot STRING    Webroot to use in configuration for hooks (e.g. empty dir).
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                                Nothing should actually be served from here. (Default is /var/www)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --hooks-pre-enable STRING Hook to check the webserver configuration prior to enabling.
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --hooks-enable STRING     Hook to enable the webserver configuration.
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --hooks-pre-reload STRING Hook to check the webserver configuration prior to reloading.
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --hooks-reload STRING     Hook to reload the webserver.
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-12 02:22:37 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --hooks-disable STRING    Hook to disable the webserver configuration.
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 18:31:18 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-09 23:54:27 +11:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								      --debug BOOLEAN           show traces and logs
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 11:01:10 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  -h, --help                    Display help and usage details
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2015-12-16 05:03:03 -08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Note: some of the options may not be fully implemented. If you encounter a problem, please report a bug on the issues page.