DavidMStraub / gramps-web-sync

Development version of a Gramps addon to synchronize Gramps Web with Gramps Desktop
GNU General Public License v3.0
12 stars 2 forks source link

Allow to disable SSL verification #24

Open vmario89 opened 9 months ago

vmario89 commented 9 months ago

Hi, i am running GrampsJS on a network, which is behind a VPN and has a self-signed cert installed, but not a valid one in terms of a public hosted page. This way the web sync interface does not allow to sync and throws an error which is hidden. I revealed it by modifying the warning to print the string behind it: grafik

i modified the code in webapihandler.py to allow this:

import ssl

...

ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE

...

with urlopen(req, context=ctx) as res:

could you maybe add some option to allow/disable SSL verification? We could need some option in the frontend dialog by adding a checkbox

DavidMStraub commented 9 months ago

Yes, that makes sense.