gnome icon indicating copy to clipboard operation
gnome copied to clipboard

Problem with Online Accounts (and fix)

Open montagdude opened this issue 8 years ago • 15 comments

Hi,

Whenever I try to add any online accounts (through Settings -> Online Accounts), e.g. Google or Facebook, I get an error like the following:

"Unable to confirm identity: Unacceptable TLS certificate"

The first part of the error message changes depending on which account I try to add, but the second part is always the same. I was able to track down the problem with journalctl -f, which indicated that a file /etc/ssl/ca-bundle.crt did not exist. I was eventually able to get it to work by doing the following:

`for FILE in $(ls /usr/share/ca-certificates/mozilla/*.crt); do

cat $FILE >> /etc/ssl/ca-bundle.crt

done`

I don't know if GNOME Online Accounts can be configured to look up the correct certificate in /usr/share/ca-certificates/mozilla instead of reading the ca-bundle.crt file, which by default is not present on Slackware. If not, maybe some Dlackware package should create this file so that Online Accounts works out of the box.

montagdude avatar Aug 01 '17 03:08 montagdude

Thanks for the report and a workaround description! I have the same problem with GOA. Even if the configuration cannot be changed, it should be possible to patch GOA. I have to look into it.

belka-ew avatar Aug 01 '17 03:08 belka-ew

The error comes from libsoup: https://git.gnome.org/browse/libsoup/tree/libsoup/soup-session.c?h=gnome-3-22#n565 set_ssl_ca_file is called when PROP_SSL_CA_FILE is set. But I wasn't able to find who sets the property. Anyway the problem can be deeper, it may be that webkit or gnutls or gnome-control-center or glib (GIO has an API for handling TLS) or whatever tries to use a wrong path.

Interesting that PROP_SSL_CA_FILE is deprecated (and was already deprecated in 3.22). So there is some chance it will be fixed. By the way slackware ships the bundled certificates aswell but the file is /etc/ssl/certs/ca-certificates.crt and not /etc/ssl/certs/ca-bundle.crt. An ugly solution would be to patch libsoup to look into /etc/ssl/certs/ca-certificates.crt if it can't find ca-bundle.crt

The suggested workaround works here for Google but not for Facebook, I get a slightly different error even if ca-bundle.crt exists. @montagdude, does Facebook work for you?

belka-ew avatar Aug 12 '17 07:08 belka-ew

Thanks for the extra information. Sounds like it would be fairly complicated to fix it from the GNOME side. I can confirm that the workaround doesn't work for Facebook here, either. I've tried Google, Facebook, and Flickr, and it works for Google and Flickr, but not Facebook.

montagdude avatar Aug 14 '17 01:08 montagdude

I just installed gir1.2-goa on my kali linux and since then, once I attempt to add an account on GOA, the window simply disappears. Whats the issue?

lil-armstrong avatar Oct 18 '17 11:10 lil-armstrong

@lil-armstrong Can you start the control center in terminal:

/usr/bin/gnome-control-center

open online accounts and look if you get some output to the console.

belka-ew avatar Oct 18 '17 12:10 belka-ew

Yes I can

lil-armstrong avatar Oct 18 '17 12:10 lil-armstrong

Her's the output on Terminal:

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:137:54: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:159:56: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:165:71: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:169:56: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:174:58: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:182:56: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:187:58: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:195:56: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:200:58: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:211:74: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:218:58: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:221:75: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1036:66: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1050:71: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1059:56: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1065:73: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1076:73: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1079:58: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1086:73: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1089:58: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1312:71: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1319:56: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1323:73: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1440:56: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1444:58: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1447:56: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1839:9: Not using units is deprecated. Assuming 'px'.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:1839:9: Expected a string.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:2630:53: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:2660:51: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:2663:53: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:2668:53: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:2668:87: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:2913:8: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:2913:17: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3185:54: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3499:71: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3506:56: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3509:73: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3517:52: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3589:56: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3597:71: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3601:54: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3612:54: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3805:8: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3805:20: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3825:54: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3836:8: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3836:22: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3839:8: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3839:28: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3842:8: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3842:22: Using Pango syntax for the font: style property is deprecated; please use CSS syntax

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3859:12: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3859:12: Expected a string.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3865:14: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3865:14: Expected a string.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3871:16: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3871:16: Expected a string.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3876:14: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3876:14: Expected a string.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3943:12: Expected a string.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3945:16: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3945:16: Expected a string.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3991:12: not a number

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3991:12: Expected a string.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3994:66: Using one color stop with linear-gradient() is deprecated.

(gnome-control-center:9076): Gtk-WARNING **: Theme parsing error: gtk.css:3997:66: Using one color stop with linear-gradient() is deprecated.


lil-armstrong avatar Oct 18 '17 12:10 lil-armstrong

Hm. I don't get any output. Post please the installed packages aswell:

ls /var/log/packages/*dlack

I can compare then with my setup. But not sure if I can help.

belka-ew avatar Oct 18 '17 12:10 belka-ew

Ehm.. The directory /var/log/packages does not exist. Here are the dirs in mine:

ls /var/log/
alternatives.log     exim4/               ntpstats/
alternatives.log.1   faillog              postgresql/
apache2/             firebird/            samba/
apt/                 fontconfig.log       speech-dispatcher/
auth.log             gdm3/                stunnel4/
auth.log.1           guymager.log         syslog
auth.log.2.gz        inetsim/             syslog.1
auth.log.3.gz        installer/           syslog.2.gz
bootstrap.log        kern.log             syslog.3.gz
btmp                 kern.log.1           syslog.4.gz
btmp.1               kern.log.2.gz        syslog.5.gz
chkrootkit/          kern.log.3.gz        syslog.6.gz
couchdb/             lastlog              syslog.7.gz
daemon.log           lynis.log            sysstat/
daemon.log.1         lynis-report.dat     unattended-upgrades/
daemon.log.2.gz      macchanger.log       user.log
daemon.log.3.gz      macchanger.log.1.gz  user.log.1
debug                macchanger.log.2.gz  user.log.2.gz
debug.1              macchanger.log.3.gz  user.log.3.gz
debug.2.gz           messages             wtmp
debug.3.gz           messages.1           wtmp.1
dpkg.log             messages.2.gz        wvdialconf.log
dpkg.log.1           messages.3.gz        Xorg.0.log
dradis/              mysql/               Xorg.0.log.old

lil-armstrong avatar Oct 18 '17 12:10 lil-armstrong

Is it slackware? /var/log/packages is the standard directory in any slackware installation where all installed packages are listed.

belka-ew avatar Oct 18 '17 12:10 belka-ew

No Its Kali...

lil-armstrong avatar Oct 18 '17 12:10 lil-armstrong

I am pretty sure I mentioned that when I posted my complaint...

lil-armstrong avatar Oct 18 '17 12:10 lil-armstrong

Oh I see it now. Sorry I've overlooked it first. I don't know what can be the problem, gnome-control-center reports only warnings, no errors. And dlackware itself is a gnome distribution for Slackware Linux only.

belka-ew avatar Oct 18 '17 13:10 belka-ew

Maybe try to report it to the kali maintainers.

belka-ew avatar Oct 18 '17 13:10 belka-ew

Back to Dlackware. I had been away from it for several months, but I just rebuilt and reinstalled everything yesterday (3.22/14.2 branch). This problem is still present, and now my workaround isn't working either. It's not really a big deal to me, but I thought I would let you know.

montagdude avatar May 20 '18 00:05 montagdude