Issue while adding add-ons

Installed Anki without Admin access, in non-C drive(Location doesn’t have any spaces in names only underscore “_”)

Got the following error while adding add-on

1771074083: Please check your internet connection. HTTPSConnectionPool(host=‘ankiweb . net’, port=443): Max retries exceeded with url: /shared/download/1771074083?v=2.1 &p=231201 (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)’)))

As part of searching for resolution, found that people ran the following code in console, so I’ve attached the code and the result

Code

import certifi, pprint
pp(certifi.where())
pprint.pprint(dict(os.environ))

Result:

Traceback (most recent call last):
File “aqt.debug_console”, line 294, in onDebugRet
File “”, line 3, in
NameError: name ‘os’ is not defined

Can you please help with the issue

OS: Windows 10
Anki Version: 23.12.1 Qt6

just add
, os
to the “import” line

You could try setting the env var ANKI_NOVERIFYSSL to 1