Sublime Forum

Create a file named Package Control.user-ca-bundle and paste in a PEM-formatted version of the certificate

#1

how to do this step can anyone will help me? the step mentioned below.

  1. Create a file named Package Control.user-ca-bundle and paste in a PEM-formatted version of the certificate
1 Like

URL error coming
#2
  1. Open Command Palette
  2. Enter Package Control: User CA bundle
  3. Paste custom CA certificate into the opened file
  4. Save and close it.

A PEM cert looks like …

-----BEGIN CERTIFICATE-----
some base62 encoded stuff
-----END CERTIFICATE-----
0 Likes

#3

But from where should I get the certificate .Because the error showing in that command palette that:

"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."

0 Likes

#4

If you are not a victim of a man-in-the-middle attack, the most likely reason for such verification failures is a network security appliance breaking up any encrypted connection, which breaks its trust chain.

What you need is the public CA certificate used to sign any re-encrypted connection, so Package Control can trust the modified trust-chain.

In corporate networks it is common to have such security systems, but those should also deploy required CA certificates to all end-points. Otherwise those wouldn’t be able to establish any HTTPS/TLS connecttion without being faced with certificate errors.

In case you are using a HTTPS proxy, you need to add its public key or a CA certificate used to sign it.

There is no general answer to the question of where to get it.

0 Likes

#5

Sorry, are you lying?

control + shift + p open the plate then input User CA bundle and you will found nothing.

Maybe the package control you used is modified by your self. It is not a common official version.

1 Like

#6

If you don’t see that entry, you probably using an out-dated version.

The Command Palette entry exists as of v4.0.2

1 Like

#7

ISSUE: No "Package Control: Install Package" option i.e. Cannot Search for or Install Packages in Sublime Text (June 26, 2024)

  • Cannot Locate Package Installer (with CTRL+SHIFT+P -> type in search bar: "install" / "package installer" -> RESULT: No matching results.
  • Cannot search for packages with package names, such as ColorPicker.
  • I am trouble shooting the issue at https://packagecontrol.io/docs/troubleshooting Package Control / DOCS / Troubleshooting / "There are no packages available for installation" / Item 5. / Item 3. "Create a file named Package Control.user-ca-bundle and paste in a PEM-formatted version of the certificate "

MY SOLUTION:

NOTE: Remember to make sure to EXIT Sublime Text after making changes to settings. And, restart. Otherwise, the changes will not take effect.

For some reason my “Package Control” was listed under the “ignored packages” list in Sublime Text settings.

IF YOU CAN’T FIND PACKAGE CONTROL IN SUBLIME TEXT 3 TRY THIS:
ALSO, for some reason my “Package Control” was listed under in in Sublime Text Settings. I was able to find and removed it from the "ignored_packages: list like this:

  1. Open Sublime Text
  2. Select "Preferences"
  3. Select "Settings". I now see two windows. On the left i have the window "Preferences.sublime-settings", which I cannot edit. That's the default settings. And, on the right, I have the a window with the same name "Preferences.sublime-settings", this is where I can see in
    	<code>
    	// 
    
    	    "ignored_packages":
    	    [ 
    	        "Package Control",
    	        "[Other Ignored Package Names]",
    	    ], 
    	</code>
    
  4. Delete the "Package Control" from this list. So, it looks like this:
    	<code>
    
    	    "ignored_packages":
    	        [
    	            "[Other Ignored Package Names]",
    	        ],
    	 
    	</code>
    
  5. Close Sublime Text (all windows).
  6. Reopen Sublime Text. Now, I can see "Package Control" in CTRL+SHIFT+P again.

Somehow, I was able to install packages after this with:

  1. Open Sublime Text
  2. Ctrl + Shift + P -> Opens a search bar
  3. Type in "install" into the empty search bar
  4. Select "Package Control: Install Package"
  5. Then type in the name of the package you want to install, for example, 'ColorPicker'. Then, color picker will show up as available (if you have not installed it).
0 Likes