mirror of
				https://github.com/zulip/zulip-desktop.git
				synced 2025-10-31 03:53:34 +00:00 
			
		
		
		
	Allow server which is signed by root cert WIP #150
App used to throw an error because it assumes that the certificate is invalid or not signed properly. The solution of this problem is same as self-signed certificate fix which is we simply show a warning dialog asking user if they trust the certificate.
This commit is contained in:
		| @@ -79,8 +79,8 @@ class DomainUtil { | ||||
| 			request(checkDomain, (error, response) => { | ||||
| 				if (!error && response.statusCode !== 404) { | ||||
| 					resolve(domain); | ||||
| 				} else if (error.toString().indexOf('Error: self signed certificate') >= 0) { | ||||
| 					if (window.confirm(`Do you trust certificate from ${domain}?`)) { | ||||
| 				} else if (error.toString().indexOf('Error: self signed certificate') >= 0 || 'Error: unable to verify the first certificate') { | ||||
| 					if (window.confirm(`Do you trust certificate from ${domain}? \n ${error}`)) { | ||||
| 						resolve(domain); | ||||
| 					} else { | ||||
| 						reject('Untrusted Certificate.'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user