[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.
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 <n>: 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.

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的閱讀 13,655評(píng)論 5 6
  • 市場(chǎng)上受資金追捧的仍然是趨勢(shì)白馬藍(lán)籌,再次印證強(qiáng)者恒強(qiáng)的道理。 昨天提到過,針對(duì)最近拉升幅度很大的趨勢(shì)股操作節(jié)奏盡...
    Leo凱文閱讀 299評(píng)論 0 1
  • 1. 上海今天有霾,我的心情和天氣一樣不怎么好,特別想念陽(yáng)光燦爛。 下午洗完澡后,舍友們都在看論文,在一旁啃蘋果的...
    清音素閱讀 199評(píng)論 0 0
  • 111111111111111111111111111111111111111111111
    悠悠我心_bbe3閱讀 174評(píng)論 0 0

友情鏈接更多精彩內(nèi)容