Sublime Text / Package Control: error executing: /usr/bin/security dump-trust-settings -d

I received this error when starting Sublime Text after upgrading to El Capitan. The author of package control is aware of the issue (https://github.com/wbond/package_control/issues/1002) and is working on it but if it annoys you enough to do a workaround, here it is.  Remove all of the certificates from your Keychain that are shown when you run the same command: `/usr/bin/security dump-trust-settings -d`

My output looked something like this:

Number of trusted certs = 5
Cert 0: stuff.co
Number of trust settings : 1
Trust Setting 0:
Policy OID : Apple X509 Basic
Allowed Error : CSSMERR_TP_CERT_EXPIRED
Result Type : kSecTrustSettingsResultTrustRoot
Cert 1: GTE CyberTrust Global Root
SecTrustSettingsCopyTrustSettings: The specified item could not be found in the keychain.
Cert 2: Class 3 Public Primary Certification Authority
SecTrustSettingsCopyTrustSettings: The specified item could not be found in the keychain.
  1. Open Keychain
  2. click on your login keychain
  3. Go to the search box
  4. Type in the name shown in the Cert <n>: field (in this case stuff.co)
  5. Select the Certificate entry that is shown in the results
  6. Right-click -> Delete “…”
  7. Enter your password (twice for me)

Continue until you run the dump-trust-settings command and get

SecTrustSettingsCopyCertificates: No Trust Settings were found.
Advertisements

5 thoughts on “Sublime Text / Package Control: error executing: /usr/bin/security dump-trust-settings -d”

  1. I need that certificate, I can’t just delete it. In any case, how can deleting a certificate from your computer be a fix? Those certificates are there for a reason.

    1. Sorry, I didn’t record information about the specific certificates I deleted so I can’t provide more details. I believe they were all RSA 1024 bit CA certificates which are being phased out and El Capitan doesn’t trust them by default. You could probably force trust them again to get rid of the error and keep the certs. I’ve not come across a site that requires them since deleting them so no harm done for me. Your experience may vary.

      1. In my case it’s a company certificate which I definitely need. I guess I’ll just wait for the official fix.
        Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s