Update README.md
This commit is contained in:
		
							parent
							
								
									7c1f17c818
								
							
						
					
					
						commit
						5231bb9401
					
				
							
								
								
									
										16
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
									
									
									
									
								
							| @ -45,19 +45,20 @@ letsencrypt certonly \ | |||||||
|   --domains example.com,www.example.com \ |   --domains example.com,www.example.com \ | ||||||
|   --server https://acme-staging.api.letsencrypt.org/directory \ |   --server https://acme-staging.api.letsencrypt.org/directory \ | ||||||
| 
 | 
 | ||||||
| ls ~/letsencrypt/etc | ls ~/letsencrypt/etc/live | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ### WebRoot | ### WebRoot | ||||||
| 
 | 
 | ||||||
| ```bash | ```bash | ||||||
| letsencrypt certonly \ | sudo letsencrypt certonly \ | ||||||
|   --agree-tos --email john.doe@example.com \ |   --agree-tos --email john.doe@example.com \ | ||||||
|   --webroot --webroot-path /srv/www/acme-challenge \ |   --webroot --webroot-path /srv/www/acme-challenge \ | ||||||
|  |   --config-dir /etc/letsencrypt \ | ||||||
|   --domains example.com,www.example.com \ |   --domains example.com,www.example.com \ | ||||||
|   --server https://acme-staging.api.letsencrypt.org/directory |   --server https://acme-staging.api.letsencrypt.org/directory | ||||||
| 
 | 
 | ||||||
| ls ~/letsencrypt/etc | ls /etc/letsencrypt/live/ | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| ## Run without Root | ## Run without Root | ||||||
| @ -70,6 +71,15 @@ you can use `setcap` to do so. (it may need to be run any time you reinstall nod | |||||||
| sudo setcap cap_net_bind_service=+ep /usr/local/bin/node | sudo setcap cap_net_bind_service=+ep /usr/local/bin/node | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | By default `node-letsencrypt` assumes your home directory `~/letsencrypt/`, but if | ||||||
|  | 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 | ||||||
|  | sudo chown -R $(whoami) /etc/letsencrypt /var/lib/letsencrypt /var/log/letsencrypt  | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| ## Command line Options | ## Command line Options | ||||||
| 
 | 
 | ||||||
| ``` | ``` | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user