mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Added support for agent with improved key input.
This commit is contained in:
		
							parent
							
								
									0e99551459
								
							
						
					
					
						commit
						0790376119
					
				
					 31 changed files with 48 additions and 31 deletions
				
			
		|  | @ -171,10 +171,9 @@ module.exports.CreateLetsEncrypt = function (parent) { | |||
| 
 | ||||
|             // Create Certificate Request (CSR)
 | ||||
|             obj.log("Creating certificate request..."); | ||||
|             acme.forge.createCsr({ | ||||
|                 commonName: obj.leDomains[0], | ||||
|                 altNames: obj.leDomains | ||||
|             }).then(function (r) { | ||||
|             var certRequest = { commonName: obj.leDomains[0] }; | ||||
|             if (obj.leDomains.length > 1) { certRequest.altNames = obj.leDomains; } | ||||
|             acme.forge.createCsr(certRequest).then(function (r) { | ||||
|                 var csr = r[1]; | ||||
|                 obj.tempPrivateKey = r[0]; | ||||
|                 obj.log("Requesting certificate from Let's Encrypt..."); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue