SSL: CERTIFICATE_VERIFY_FAILED on macOS 10.12.6

Hi,

I installed asciinema via pip3 but when I try to upload a recording this comes up:

Users-iMac:~ User$ asciinema upload demo.cast 
asciinema: upload failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)>
asciinema: retry later by running: asciinema upload demo.cast

I have tried what SSL:CERTIFICATE_VERIFY_FAILED on macOS told.
There was no config file in ~/.config/asciinema, there was only a install-id file, so I created one myself using this: Configuration (Docs). I changed the api to https://asciinema.org but the same error came up, but when I changed it to http://asciinema.org this new error came up:

Users-iMac:~ User$ asciinema upload demo.cast 
asciinema: upload failed: HTTP status: 308

macOS version: macOS 10.12.6 (macOS Sierra)
asciinema version: asciinema 2.4.0 (from asciinema --version)

This is my config file: config - GitHub Gist

Can anyone please help?!

Regards,
okcoder1

Hey :wave:

Using http:// won’t really work with asciinema.org, so you need to use https:// , and you can just remove the url from the config file as https is the default.

As for cert verification error… this has been a recurring problem on macOS, but I thought it finally went away (haven’t heard about this problem in a few years).

asciinema 2.x uses Python’s urllib and Python’s built-in SSL/TLS implementation, so we’re not doing anything custom/non-standard here.

On a related note, you can try installing the release candidate version of the upcoming asciinema 3.0, which doesn’t use Python (it’s a standalone binary).

The config filewill slightly change for 3.0, here’s the updated doc page: Configuration - asciinema docs

dyld: cannot load 'asciinema' (load command 0x80000034 is unknown)
Abort trap: 6

Does not work

macOS version: macOS 10.12.6 (macOS Sierra)

Uhmm, hi. This was a issue with the terminal I guess, as all other applications also started giving me the same error. But now, it started working normally all of a sudden. Anyway, thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.