update
This commit is contained in:
		
							parent
							
								
									2091a17790
								
							
						
					
					
						commit
						78824cef87
					
				| @ -194,6 +194,12 @@ return { | |||||||
| }; | }; | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | See Also | ||||||
|  | ======== | ||||||
|  | 
 | ||||||
|  | * [Let's Encrypt in (exactly) 90 seconds with Caddy](https://daplie.com/articles/lets-encrypt-in-literally-90-seconds/) | ||||||
|  | * Let's Encrypt for golang [lego](https://github.com/xenolf/lego) | ||||||
|  | 
 | ||||||
| 
 | 
 | ||||||
| LICENSE | LICENSE | ||||||
| ======= | ======= | ||||||
|  | |||||||
| @ -14,6 +14,7 @@ module.exports.create = function (opts) { | |||||||
| 
 | 
 | ||||||
|     opts.key = fs.readFileSync(path.join(opts.configDir, 'live', domainname, 'privkey.pem')); |     opts.key = fs.readFileSync(path.join(opts.configDir, 'live', domainname, 'privkey.pem')); | ||||||
|     opts.cert = fs.readFileSync(path.join(opts.configDir, 'live', domainname, 'cert.pem')); |     opts.cert = fs.readFileSync(path.join(opts.configDir, 'live', domainname, 'cert.pem')); | ||||||
|  |     /* | ||||||
|     opts.ca = fs.readFileSync(path.join(opts.configDir, 'live', domainname, 'chain.pem'), 'ascii') |     opts.ca = fs.readFileSync(path.join(opts.configDir, 'live', domainname, 'chain.pem'), 'ascii') | ||||||
|       .split('-----END CERTIFICATE-----') |       .split('-----END CERTIFICATE-----') | ||||||
|       .filter(function (ca) { |       .filter(function (ca) { | ||||||
| @ -21,6 +22,7 @@ module.exports.create = function (opts) { | |||||||
|       }).map(function (ca) { |       }).map(function (ca) { | ||||||
|         return (ca + '-----END CERTIFICATE-----').trim(); |         return (ca + '-----END CERTIFICATE-----').trim(); | ||||||
|       }); |       }); | ||||||
|  |     */ | ||||||
| 
 | 
 | ||||||
|     cb(null, require('tls').createSecureContext(opts)); |     cb(null, require('tls').createSecureContext(opts)); | ||||||
|   } |   } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user