Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing: /usr/bin/security dump-trust-settings #1002

Closed
flipphillips opened this issue Sep 23, 2015 · 47 comments
Closed

Error executing: /usr/bin/security dump-trust-settings #1002

flipphillips opened this issue Sep 23, 2015 · 47 comments
Labels

Comments

@flipphillips
Copy link

One-line Description

PC throws an error w/ dialog on startup re: the keychain on Mac OS X 10.11

Broader Description

On occasion, Package Control starts up at the beginning of a ST3 startup and displays an error of the form:

Package Control

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

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

Replication / regression

It happens at startup but not every startup. Difficult to replicate but I'm presuming you know where this work is being done. Furthermore- I just noticed a PC upgrade. So I have upgraded to see if this fixes this problem.

Happens across 2x machines at least, both running El Cap/10.11 and shared preferences / configuration via Dropbox

Relevant configuration notes

Mac Book Pro Retina + Mac Pro
Mac OS X 10.11 GM
ST3 3095
PC 3.1.0

macos_ _-bash_ _bash_ _80x24_and_bin_ _-bash_ _bash_ _80x24_and_twitter___mentions

@wbond
Copy link
Owner

wbond commented Sep 23, 2015

Package Control only dumps the trust settings about once a week since it can take a few seconds to do so. This is most likely why you only see it occasionally.

I've been working on a bunch of other, mostly unrelated crypto code that deals with dumping these trust settings also, albeit without launching a subprocess, but instead using the OS X APIs. It may make more sense to switch over to that code since it is more well tested and would not suffer from the perils of scraping command line tool output.

Just incase anyone is reading and wants to know the direction am considering, please see https://github.com/wbond/oscrypto/blob/master/oscrypto/_osx/trust_list.py#L21-L140.

@wbond
Copy link
Owner

wbond commented Sep 23, 2015

I should also note, it appears that this output is likely caused because "custom" trust settings exist for one or more certs in your system keychain.

@flipphillips
Copy link
Author

Indeed there is something 'up' with my keychain there. Curious.

@wbond wbond added the bug label Sep 24, 2015
@musashinm
Copy link

Same here.

@fabienbellanger
Copy link

I have the same problem

@ashokfernandez
Copy link

+1

@zhanghan177
Copy link

+1 Appears after upgrading to os x 10.11

@alana314
Copy link

alana314 commented Oct 9, 2015

I'm seeing it too in El Capitan. Could it be the SIP settings limiting /usr/bin?

@dadaclonefly
Copy link

+1 after upgrading OS X 10.11

@tylerhellner
Copy link

+1 after upgrading to OS X 10.11

Full message:

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.
Number of trusted certs = 3
Cert 0: VeriSign Class 3 Secure Server CA - G3
   Number of trust settings : 1
   Trust Setting 0:
      Result Type           : kSecTrustSettingsResultTrustAsRoot
Cert 1: GTE CyberTrust Global Root
Cert 2: Class 3 Public Primary Certification Authority

VCS-based packages can be ignored with the "ignore_vcs_packages" setting.`

@mrexodia
Copy link

What worked for me was to remove all certificates shown when you execute /usr/bin/security dump-trust-settings -d (mine was expired is why I tried).

When re-adding the HTTPS certificate using Safari everything worked again.

My console output:

Number of trusted certs = 3
Cert 0: secretbox.tk
   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.

It might have to do with the updated root certificates in El Capitan. GTE CyberTrust Global Root is no longer a certificate authority (see here). However, I don't know much about certificate authorities and stuff so I don't know if this is the real reason.

@tzm41
Copy link

tzm41 commented Oct 15, 2015

screen shot 2015-10-15 at 14 05 18

@harshal-gajare
Copy link

I am getting this error as well

Mac OS X 10.11

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.
Number of trusted certs = 3
Cert 0: SAP Passport CA
Number of trust settings : 2
Trust Setting 0:
Policy OID : Apple X509 Basic
Allowed Error : CSSMERR_TP_CERT_EXPIRED
Result Type : kSecTrustSettingsResultTrustRoot
Trust Setting 1:
Allowed Error : CSSMERR_TP_CERT_EXPIRED
Result Type : kSecTrustSettingsResultTrustRoot
Cert 1: GTE CyberTrust Global Root
Cert 2: Class 3 Public Primary Certification Authority

VCS-based packages can be ignored with the "ignore_vcs_packages" setting.

@davidsouza
Copy link

+1

1 similar comment
@lincetto
Copy link

+1

@nemofang
Copy link

Same issue here after upgrading to OSX 10.11.

@ajaydwarkani
Copy link

+1

1 similar comment
@davidhq
Copy link

davidhq commented Oct 17, 2015

+1

@johntdyer
Copy link

same issue here

@sashkab
Copy link

sashkab commented Oct 18, 2015

👍

@urda
Copy link

urda commented Oct 18, 2015

👎 Having the same issue...

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.
Number of trusted certs = 4
Cert 0: Urda Certificate Authority
   Number of trust settings : 2
   Trust Setting 0:
      Policy OID            : Apple X509 Basic
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
   Trust Setting 1:
      Allowed Error         : CSSMERR_TP_CERT_EXPIRED
      Result Type           : kSecTrustSettingsResultTrustRoot
Cert 1: http://openvpn.net/localca.html #1437602575
   Number of trust settings : 0
Cert 2: GTE CyberTrust Global Root
Cert 3: Class 3 Public Primary Certification Authority

VCS-based packages can be ignored with the "ignore_vcs_packages" setting.

screenshot 2015-10-17 23 54 49

@yangj1e
Copy link

yangj1e commented Oct 18, 2015

+1

@envomer
Copy link

envomer commented Oct 18, 2015

same issue here. any fix yet?

@frabonomi
Copy link

+1

@SucculentGoose
Copy link

+1 as well

@pstinnett
Copy link

+1

@jtlindsey
Copy link

Same problem here.

screen shot 2015-10-20 at 6 25 24 pm

screen shot 2015-10-20 at 6 24 45 pm

screen shot 2015-10-20 at 6 24 19 pm

@margaritis
Copy link

+1

@yaway
Copy link

yaway commented Oct 23, 2015

+1

@shankie-codes
Copy link

I'm going to follow everyone else and give this a +1

@SteveLTN
Copy link

+1

@wbond
Copy link
Owner

wbond commented Oct 23, 2015

Sorry this has taken so long. I've just needed to focus on some paying work recently. I'm hoping to get this resolved soon.

@jonathanmorgan
Copy link

Does this actually cause anything to fail? If not, it would be nice to have it fixed, but you should put food on the table first.

@zhanghan177
Copy link

When I first encountered this issue, my sublime froze and I have to force quit. I haven't been using sublime since then. But I just checked my sublime again, and it seems working well. I don't know if my issue still exist though...

@qbein
Copy link

qbein commented Oct 24, 2015

+1

@davidhq
Copy link

davidhq commented Oct 24, 2015

Maybe there has been enough of +1s on this thread :) The message has gotten accross :D

@imcom
Copy link

imcom commented Oct 25, 2015

+1 Appears after upgrading to os x 10.11

@inopinatus
Copy link

+1 and mostly I want to know if this breaks anything.

@urda
Copy link

urda commented Oct 25, 2015

I'm going to echo what @davidhq said, we've got enough +1's for now, and @wbond has recognized this issue.

@tatygrassini
Copy link

+1

2 similar comments
@badabam
Copy link

badabam commented Oct 27, 2015

+1

@goiwai
Copy link

goiwai commented Oct 28, 2015

+1

@cfc4n
Copy link

cfc4n commented Oct 28, 2015

+1

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: GDB
   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.

@marcjohlic
Copy link

+1 ST3, El Capitan etc

@manuelmeurer
Copy link

Seriously, guys, please stop it with the +1s! It gets really annoying for people like me who subscribed to updates from this ticket... @wbond already responded that he is working on this! 😄

Repository owner locked and limited conversation to collaborators Oct 29, 2015
@wbond
Copy link
Owner

wbond commented Jun 14, 2016

Here is the current work to be done: wbond/oscrypto#15

@wbond
Copy link
Owner

wbond commented Jul 29, 2016

be747b9 replaces the old trust list export code with new code from oscrypto. There will be a new release in the near future that includes this.

@wbond wbond closed this as completed Jul 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests