Monokai/monokai-pro-sublime-text

Unable to download the package from package control

Closed this issue · 5 comments

Hi, I tried to download it from the package control, but there's an certificate error.
image

Just setting up a new Macbook Pro for work and I'm getting the same.

Here's a text version for SEO:

HTTP exception InvalidCertificateException (Host packages.monokai.pro returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:548))) downloading https://packages.monokai.pro/Theme%20-%20Monokai%20Pro/1.1.19/Theme%20-%20Monokai%20Pro.sublime-package.

error: Package Control

Unable to download Theme - Monokai Pro. Please view the console for more details.

Edit:
For macOS users: As a workaround, I directly went to the link above which downloaded the package. I then moved the downloaded file over to Sublime Text's Installed Packages folder (click Preferences > Browse Packages which will take you to packages, just go on level up and you should see it). After doing that, Monokai Pro options showed up under Command + Shift + P

Thanks. This has to do with the expiration of the root certificate of Let's Encrypt on October 1st of 2021. It seems some systems are affected by this. The website monokai.pro is secured using Let's Encrypt, and while the site works fine, Package Control seems to have issues downloading the package on some systems.

My computer is also affected by this issue, and I've asked for solutions in this thread on the Package Control repository: wbond/package_control#1599

I haven't found a solution that works on my system yet. I've renewed the Let's Encrypt certificates on the server, but that doesn't do anything, the problem seems to be on the client side unfortunately.

Update: An older version of OpenSSL that is used by Sublime Text 4 could be the problem. There's an outstanding issue for this: sublimehq/sublime_text#4903

I ran into this issue now on a new Mac Mini and managed to solve it as follows.

Sublime Text > Preferences > Package Settings > Package Control > Settings

This will open a split window with only the right viewer being editable.

Copy the block downloader_precedence from the left editor and paste it into the right editor (Just before the last }), then change the osx order to start with curl

So basically, you should have a block similar to the following one in the right side editor

  "downloader_precedence": {
    "windows": ["wininet", "oscrypto"],
    "osx": ["curl", "urllib", "oscrypto"],
    "linux": ["urllib", "oscrypto", "curl", "wget"],
  }

Once you're done with that try to install it again using Package Control and it should work.

I've changed the certificate on my server and it looks like it works again. Can you please confirm?

I've changed the certificate on my server and it looks like it works again. Can you please confirm?

Yeah, it works thanks a lot.