Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle my local https site with ERR_CERT_AUTHORITY_INVALID error #1050

Open
crazyraven opened this issue Jan 26, 2023 · 4 comments
Open

Comments

@crazyraven
Copy link

Describe the bug
When I try to connect my local https server with private cert, "ERR_CERT_AUTHORITY_INVALID" is found and I can not access my local server, but other browsers such as chrome, firefox are working if make the site exception.

could you please let me know how to my site make exception from secure in eaf browser?

@manateelazycat
Copy link
Member

manateelazycat commented Jan 27, 2023

Add below code at

def callback_js(self, result):

    def certificateError(self, certificateError):
        return True

This patch will fix your problem?


Reference link: https://stackoverflow.com/questions/52867707/get-sslerrors-signal-in-qwebengineview

@crazyraven
Copy link
Author

crazyraven commented Jan 27, 2023

I have no idea if I've added it right place.

def certificateError(self, certificateError):
    return True

def callback_js(self, result):
    ''' Callback of JavaScript, call loop.quit to jump code after loop.exec.'''
    self.result = result
    self.loop.quit()

Unfortunately, it didn't work.

@manateelazycat
Copy link
Member

I haven't idea now :(

@crazyraven
Copy link
Author

crazyraven commented Jan 28, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants