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:
akashnimare
2017-07-12 00:45:44 +05:30
parent 9ab75b9800
commit 3f93a3346f

View File

@@ -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.');