[SOLVED] SSL: CERTIFICATE_VERIFY_FAILED in Eventghost Autoremote plugin

141 views
Skip to first unread message

mprost

unread,
Oct 16, 2021, 6:31:35 AM10/16/21
to Tasker
Hi.

I'm gonna leave this here in case someone else faces the same issue.

Issue
When trying to send a message, using "AutoRemote: Send Message" action in EventGhost, it fails with an error. This is an excerpt from the EventGhost log:

    8:52:48         AutoRemote: Sending crtask=:=confirmed {eg.event.payload.arpar[1]} {eg.event.payload.arpar[2]} from {eg.event.payload.sender.name} to device5
    8:52:48            Found device with manual name: s4. Using this one instead.
    8:52:49   Couldn't make request via the internet: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
    8:52:49   Couldn't send Request

This worked without any issue for a long time but started giving problems out of the blue several weeks ago.

This happens with EventGhost version 0.5.0-rc6 and latest version of the EventGhost AutoRemote plugin.

Solution
It appears the problem comes from the infamous DST Root CA X3 Expiration on September 2021. What worked for me was (taken from here):
  1. Download this file and extract it to the "lib27" directory in your EventGhost installation (overwrite if a file already exists).
  2. Create a Python script action at the top of the Autostart group:
        import os
        os.environ['REQUESTS_CA_BUNDLE'] = 'C:\\Program Files (x86)\\EventGhost\\lib27\\cacert.pem'
  3. Restart EG.
Details in the linked thread.

Cheers,
mprost
Reply all
Reply to author
Forward
0 new messages