mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-18 21:02:32 +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) => {
|
request(checkDomain, (error, response) => {
|
||||||
if (!error && response.statusCode !== 404) {
|
if (!error && response.statusCode !== 404) {
|
||||||
resolve(domain);
|
resolve(domain);
|
||||||
} else if (error.toString().indexOf('Error: self signed certificate') >= 0) {
|
} 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}?`)) {
|
if (window.confirm(`Do you trust certificate from ${domain}? \n ${error}`)) {
|
||||||
resolve(domain);
|
resolve(domain);
|
||||||
} else {
|
} else {
|
||||||
reject('Untrusted Certificate.');
|
reject('Untrusted Certificate.');
|
||||||
|
|||||||
Reference in New Issue
Block a user