[Sublime Text] How to fix Package Control: "error executing: /usr/bin/security dump-trust-settings -d"

What is the problem


Today, I removed Sublime Text 2 from my Mac devices, and then installed Sublime Text 3.
In my Macbook Pro, installed Package Control succeeded without any problem.
But in my Mac Mini, installed Package Control met the problem, similar below:

Package Control

Error executing: /usr/bin/security dump-trust-settings -d

SecTrustSettingsCopyTrustSettings: The specified item could not be found in the keychain.
...
...

BTW, my both Mac devices, the OS version are same EI Capitan.

Solution Find


After Googled, noted that this is known issue in Github, the Package Control project, and the link is below.
Before this post publish, still no solution provided from Package Control owner.
https://github.com/wbond/package_control/issues/1002

And then, I found a blog that mention how to fix this issue, and I tried to fix and , so I share it here.

If you meets this issue, maybe the pop up error message similar below.

Package Control

Error executing: /usr/bin/security dump-trust-settings -d

SecTrustSettingsCopyTrustSettings: The specified item could not be found in the keychain.
SecTrustSettingsCopyTrustSettings: The specified item could not be found in the keychain.
SecTrustSettingsCopyTrustSettings: The specified item could not be found in the keychain.
SecTrustSettingsCopyTrustSettings: The specified item could not be found in the keychain.
SecTrustSettingsCopyTrustSettings: The specified item could not be found in the keychain.
Number of trusted certs = 6
Cert 0: Alipay Local Service
   Number of trust settings : 12
   Trust Setting 0:
      Policy OID            : SSL
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 1:
      Policy OID            : SSL
      Allowed Error         : Host name mismatch
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 2:
      Policy OID            : SMIME
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 3:
      Policy OID            : SMIME
      Allowed Error         : S/MIME Email address mismatch
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 4:
      Policy OID            : EAP
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 5:
      Policy OID            : IPSec
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 6:
      Policy OID            : iChat
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 7:
      Policy OID            : PKINIT Client
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 8:
      Policy OID            : PKINIT Server
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 9:
      Policy OID            : Code Signing
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 10:
      Policy OID            : Unknown OID length 9, value { 2A 86 48 86 F7 63 64 01 14  }
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 11:
      Policy OID            : Apple X509 Basic
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
Cert 1: Equifax Secure Certificate Authority
Cert 2: GTE CyberTrust Global Root
Cert 3: Thawte Premium Server CA
Cert 4: Thawte Server CA
Cert 5: Class 3 Public Primary Certification Authority

VCS-based packages can be ignored with the "ignore_vcs_packages" setting.
[Sublime Text] How to fix Package Control:
90382e00-752a-11e5-9eb6-a5d323fbaae9.png

How to fix

  1. Open Keychain.
  2. Click on your login keychain.
  3. Go to the Search box.
  4. Type in the name shown in the Cert : field (in this case: Alipay Local Service).
  5. Select the Certificate entry that is shown in the results.
  6. Right click -> Delete “…”, enter your password (twice for me).

Continue until you run the dump-trust-settings command and maybe you will get output below.

SecTrustSettingsCopyCertificates: No Trust Settings were found.

Enjoy good tools: Sublime Text.

你可能感兴趣的:([Sublime Text] How to fix Package Control: "error executing: /usr/bin/security dump-trust-settings -d")