mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2024-11-16 17:28:59 +00:00 
			
		
		
		
	Allow for custom ca set on httpsOptions to be used in the creteSecureContext call.
This commit is contained in:
		
							parent
							
								
									9f31326a5a
								
							
						
					
					
						commit
						6ecfef3dad
					
				| @ -102,6 +102,7 @@ module.exports.create = function (opts) { | ||||
|         certInfo.tlsContext = tls.createSecureContext({ | ||||
|           key: certInfo.privkey || certInfo.key         // privkey.pem
 | ||||
|         , cert: certInfo.fullchain || certInfo.cert     // fullchain.pem (cert.pem + '\n' + chain.pem)
 | ||||
|         , ca: (opts.httpsOptions.ca ? opts.httpsOptions.ca + '\n' + certInfo.ca : certInfo.ca) | ||||
|         }); | ||||
|       } catch(e) { | ||||
|         console.warn("[Sanity Check Fail]: a weird object was passed back through le.fetch to lex.fetch"); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user