emacs-application-framework icon indicating copy to clipboard operation
emacs-application-framework copied to clipboard

How to handle my local https site with ERR_CERT_AUTHORITY_INVALID error

Open crazyraven opened this issue 2 years ago • 4 comments

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?

crazyraven avatar Jan 26 '23 02:01 crazyraven

Add below code at https://github.com/emacs-eaf/emacs-application-framework/blob/8410cca2de534d9c2f76ef4d0a672b631318b86a/core/webengine.py#L768

    def certificateError(self, certificateError):
        return True

This patch will fix your problem?


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

manateelazycat avatar Jan 27 '23 13:01 manateelazycat

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.

crazyraven avatar Jan 27 '23 15:01 crazyraven

I haven't idea now :(

manateelazycat avatar Jan 28 '23 01:01 manateelazycat

Well noted with many thanks

Thank you for your attention 🙂

2023년 1월 28일 (토) 오전 10:05, Andy Stewart @.***>님이 작성:

I haven't idea now :(

— Reply to this email directly, view it on GitHub https://github.com/emacs-eaf/emacs-application-framework/issues/1050#issuecomment-1407235637, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJCCVMEOPK6GCA3W4CNOFNTWURWFRANCNFSM6AAAAAAUHAEVKU . You are receiving this because you authored the thread.Message ID: @.***>

crazyraven avatar Jan 28 '23 02:01 crazyraven