Sublime Forum

Package Control: Error downloading channel. InvalidCertificateException

#1

Hi!

New to Sublime Text and working hard to start enjoying this impressive software ASAP! Thanks in advance for any help! Running Sublime Text 3 on a Mac OS X 10.11.6

Some days ago, after some changes in the network infrastructure of my organisation, Package Control started claiming that no package is available for installation. Sublime Text console shows the following messages…

Package Control: Fetching list of available packages and dependencies
  Platform: osx-x64
  Sublime Text Version: 3126
  Package Control Version: 3.2.1
Package Control: Download Debug
  URL: https://packagecontrol.io/channel_v3.json
  Timeout: 30
  Resolved IP: 50.116.34.243
  Resolved IPv6: 2600:3c02:e000:42::1
Package Control: Urllib Debug Proxy
  http_proxy: 
  https_proxy: 
  proxy_username: 
  proxy_password: 
Package Control: Found previously exported CA bundle at /Users/rrodriguez/Library/Application Support/Sublime Text 3/Packages/User/oscrypto-ca-bundle.crt (306442 bytes)
Package Control: Urllib HTTPS Debug General
  Connecting to packagecontrol.io on port 443
Package Control: Urllib HTTPS Debug General
  Upgrading connection to SSL using CA certs file at /Users/rrodriguez/Library/Application Support/Sublime Text 3/Packages/User/Package Control.merged-ca-bundle
Package Control: Error downloading channel. HTTP exception InvalidCertificateException (Host packagecontrol.io returned an invalid certificate ([SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:548))) downloading https://packagecontrol.io/channel_v3.json.

The funny thing is that I’m able to connect to https://packagecontrol.io/channel_v3.json and access that file without a glitch by using any of the Internet browsers installed on the same computer. Thus, I’m guessing there is some issue affecting how Sublime Text Package Control communicate over https with its website avoiding a correct encrypted/protected connection.

Please, is this a known issue? Is there anything I can/must do to recover Package Control normal functioning?

There are more programs having communication issues here (Mac OS X software updates, some R scripts using https… so, it is not problem affecting only Sublime Text, but I think Sublime Text is so flexible and powerful that must be able to deal with this kind of problems!).

Any idea will be extremelly welcome! Cheers!

0 Likes

Sublime-github on Mac OS X El Capitan 10.11.6
#2

the following issue and its workarounds may be relevant:

I don’t really know anything about these “CA bundles”, but you could also try deleting /Users/rrodriguez/Library/Application Support/Sublime Text 3/Packages/User/oscrypto-ca-bundle.crt so that Package Control will export it again, maybe with updated/new certificates, which might help get things working, but this is a complete guess

0 Likes

#3

Thanks!

Before going to the issue you point me to: I’ve tried a fresh install and, after your post, to remove that bundle. The file is recreated when I launch Sublime Text what the error persist: error downloading channel. HTTP exception Invalid Certificate Exception.

I’m moving to the issue opened by jonluca in February.

Greetings!

0 Likes