mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	Update README.md
This commit is contained in:
		
							parent
							
								
									2a73771ed6
								
							
						
					
					
						commit
						6f90c5d1e6
					
				
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							| @ -24,7 +24,7 @@ npm install --save letsencrypt-express | ||||
| * http / http2 | ||||
| * koa | ||||
| 
 | ||||
| ### Setup | ||||
| ### Setup (same for all examples)  | ||||
| 
 | ||||
| ```javascript | ||||
| 'use strict'; | ||||
| @ -47,9 +47,7 @@ var lex = LEX.create({ | ||||
| }); | ||||
| ``` | ||||
| 
 | ||||
| **WARNING**: If you don't do any checks and simply complete `approveRegistration` callback, an attacker will spoof SNI packets with bad hostnames and that will cause you to be rate-limited and or blocked from the ACME server. | ||||
| 
 | ||||
| Alternatively, You can run **registration** manually: | ||||
| WARNING: If you don't do any checks and simply complete `approveRegistration` callback, an attacker will spoof SNI packets with bad hostnames and that will cause you to be rate-limited and or blocked from the ACME server. Alternatively, You can run registration *manually*: | ||||
| 
 | ||||
| ```bash | ||||
| npm install -g letsencrypt-cli | ||||
| @ -57,10 +55,10 @@ npm install -g letsencrypt-cli | ||||
| letsencrypt certonly --standalone \ | ||||
|   --config-dir ~/letsencrypt/etc \ | ||||
|   --agree-tos --domains example.com --email user@example.com | ||||
|    | ||||
| # Note: the '--webrootPath' option is also available if you don't want to shut down your webserver to get the cert. | ||||
| ``` | ||||
| 
 | ||||
| Note: the `--webrootPath` option is also available if you don't want to shut down your webserver to get the cert. | ||||
| 
 | ||||
| ### Standalone | ||||
| 
 | ||||
| ```javascript | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user