AnkiConnect install failure due to a security proxy, looking for a bypass

Hi, today I installed Anki and tried to get AnkiConnect installed, but failed with following error message:

One or more errors occurred:

2055492159: Please check your internet connection.

HTTPSConnectionPool(host=‘ankiweb.net’,

port=443): Max retries exceeded with url: / shared/download/2055492159? v=2.1&p=250201 (Caused by SSLError(SSLCert VerificationError (1, '[SSL:

CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain Lssl.c:1129)')))

I believed this is due to the company’s security proxy and cross-checked this with Grok and Gemini. This is indeed because of that.
They suggested to do manual add-on install, downloading the add-on file from a website or networks instead of let Anki to connect AnkiWeb.
I checked out the AnkiConnect download page but it seems there’s no download file directly available, only providing code for the add-on.

Gemini also said try with below CURL, and I tried below:

curl -L -o AnkiConnect.ankiaddon https://ankiweb.net/shared/download/2055492159

And I managed to get an Anki file named “AnkiConnect.ankiaddon”, but it’s giving me an error message like this when I tried it:

Error installing ⁨AnkiConnect.ankiaddon⁩: ⁨Corrupt add-on file.⁩

Please report this to the respective add-on author(s).

And now I don’t know what to do. Where can I find a direct download to the AnkiConnect file?

I know that having my own device would be the optimal solution but that’s not an option ATM.
Would appreciate any advice.

Edit: Forgot to mention the version and device details, I use Apple Silicon Macbook and just downloaded the latest version of Anki today, it’s Version ⁨25.02.1

1 Like

You should revert to Anki version 25.02 (or whatever version you upgraded from) for the time being. Security fixes in the 25.02.1 patch version are likely interfering with the add-on.

1 Like

If you install from a zip/ankiaddon file, the package has to contain a manifest.json file. You can add this manifest.json to the zip, then re-package it and install to work around the issue:

{"package": "ankiconnect", "name": "AnkiConnect"}
2 Likes

I developed an old AnkiConnect downloader earlier, I think the latest AnkiConnect can be downloaded directly from here. add-on file: AnkiConnect.fork.by.Shige.ankiaddon

Download the .ankiaddon file and open it with a double-click, or install it from the “Install from file” menu in the Anki add-ons management screen. (Please note that you cannot install the file by dragging and dropping it into Anki).

And HTTPS problems may be solved by using this add-on.
add-on file: Enable.HTTPS.interception.with.foreign.SSL.certificates.ankiaddon
add-on page: :shield:Enable HTTPS interception with foreign SSL certificates (Reupload by Shigeඞ)