mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	improved proxy support in ClickOnce application.
This commit is contained in:
		
							parent
							
								
									b2838eda0c
								
							
						
					
					
						commit
						cd6f8502ca
					
				
					 11 changed files with 71 additions and 77 deletions
				
			
		| 
						 | 
				
			
			@ -156,13 +156,9 @@ module.exports.CertificateOperations = function (parent) {
 | 
			
		|||
        var extensions = [{ name: "basicConstraints", cA: false }, { name: "keyUsage", keyCertSign: false, digitalSignature: true, nonRepudiation: false, keyEncipherment: true, dataEncipherment: (extKeyUsage.serverAuth !== true) }, extKeyUsage, { name: "subjectKeyIdentifier" }];
 | 
			
		||||
        
 | 
			
		||||
        if (extKeyUsage.serverAuth === true) {
 | 
			
		||||
 | 
			
		||||
            // set subjectAltName according to commonName parsing. 
 | 
			
		||||
            // Set subjectAltName according to commonName parsing. 
 | 
			
		||||
            // Ideally, we should let opportunity in given interface to set any type of altNames according to node_forge library
 | 
			
		||||
            // such as type 2, 6 and 7
 | 
			
		||||
            // 2 -> DNS
 | 
			
		||||
            // 6 -> URI
 | 
			
		||||
            // 7 -> IP
 | 
			
		||||
            // such as type 2, 6 and 7. (2 -> DNS, 6 -> URI, 7 -> IP)
 | 
			
		||||
            var altNames = [];
 | 
			
		||||
 | 
			
		||||
            // According to commonName parsing (IP or DNS), add URI and DNS and/or IP altNames
 | 
			
		||||
| 
						 | 
				
			
			@ -176,7 +172,7 @@ module.exports.CertificateOperations = function (parent) {
 | 
			
		|||
            }
 | 
			
		||||
            altNames.push({ type: 6, value: "http://" + commonName + "/" })
 | 
			
		||||
 | 
			
		||||
            // add localhost stuff for easy testing on localhost ;)
 | 
			
		||||
            // Add localhost stuff for easy testing on localhost ;)
 | 
			
		||||
            altNames.push({ type: 2, value: "localhost" });
 | 
			
		||||
            altNames.push({ type: 6, value: "http://localhost/" });
 | 
			
		||||
            altNames.push({ type: 7, ip: "127.0.0.1" });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue