fixed error in README
This commit is contained in:
		
							parent
							
								
									32de5c4178
								
							
						
					
					
						commit
						a0f0b1ddfa
					
				
							
								
								
									
										15
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								README.md
									
									
									
									
									
								
							| @ -23,12 +23,25 @@ var https = require('https') | |||||||
|    |    | ||||||
| cas = https.globalAgent.options.ca = https.globalAgent.options.ca || []; | cas = https.globalAgent.options.ca = https.globalAgent.options.ca || []; | ||||||
| 
 | 
 | ||||||
| cas = cas.concat(require('ssl-root-cas').getOnce()); | cas = cas.concat(require('ssl-root-cas')); | ||||||
| cas.push(fs.readFileSync(path.join(__dirname, 'ssl', '01-cheap-ssl-intermediary-a.pem'))); | cas.push(fs.readFileSync(path.join(__dirname, 'ssl', '01-cheap-ssl-intermediary-a.pem'))); | ||||||
| cas.push(fs.readFileSync(path.join(__dirname, 'ssl', '02-cheap-ssl-intermediary-b.pem'))); | cas.push(fs.readFileSync(path.join(__dirname, 'ssl', '02-cheap-ssl-intermediary-b.pem'))); | ||||||
| cas.push(fs.readFileSync(path.join(__dirname, 'ssl', '03-cheap-ssl-site.pem'))); | cas.push(fs.readFileSync(path.join(__dirname, 'ssl', '03-cheap-ssl-site.pem'))); | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | For the sake of version consistency this package ships with the CA certs that were | ||||||
|  | available at the time it was published. | ||||||
|  | 
 | ||||||
|  | If you want the latest certificates (downloaded as part of the postinstall process),  | ||||||
|  | you can require those instead like so: | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  |   , latest = require('ssl-root-cas/latest') | ||||||
|  |   ; | ||||||
|  | 
 | ||||||
|  | cas = cas.concat(latest); | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| BAD IDEAS | BAD IDEAS | ||||||
| === | === | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user