Bug 2242796 - I have “Failed to authenticate: Unacceptable TLS certificate” problems after recent cert changes.
Summary: I have “Failed to authenticate: Unacceptable TLS certificate” problems after...
Keywords:
Status: CLOSED DUPLICATE of bug 1850512
Alias: None
Product: Fedora
Classification: Fedora
Component: ca-certificates
Version: 38
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Bob Relyea
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-09 02:59 UTC by John Dodson
Modified: 2023-10-10 11:52 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-10-10 00:07:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
logs for connecting to www.googleapis.com with gnutls (1.57 KB, text/plain)
2023-10-09 15:21 UTC, Alexander Sosedkin
no flags Details
logs for connecting to www.googleapis.com with openssl (3.68 KB, text/plain)
2023-10-09 15:21 UTC, Alexander Sosedkin
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-994 0 None None None 2023-10-09 03:00:07 UTC

Description John Dodson 2023-10-09 02:59:50 UTC
I  have “Failed to authenticate: Unacceptable TLS certificate” problems after recent cert changes.

2023-10-09T01:00:17+1100 SUBDEBUG Upgrade: ca-certificates-2023.2.60_v7.0.306-1.0.fc38.noarch
ca-certificates-2023
2023-10-09T01:00:17+1100 SUBDEBUG Upgrade: ca-certificates-2023.2.60_v7.0.306-1.0.fc38.noarch
2023-10-09T01:00:17+1100 SUBDEBUG Upgraded: ca-certificates-2023.2.60-2.fc38.noarch

Now I get gmail errors via Evolution.

eg.
SSL certificate for address book “CardDAV : card” is not trusted.

Reason: The signing certificate authority is not known.

and

Failed to open folder.

The reported error was “Failed to authenticate: Unacceptable TLS certificate”.

Other services work ok (other mail servers) 

Reproducible: Always

Steps to Reproduce:
1.Run evolution & connect to gmail servers.
2.
3.
Actual Results:  
fails

Expected Results:  
works

Comment 1 John Dodson 2023-10-09 03:03:17 UTC
The problem does not manifest on other (non linux) devices.

Comment 2 Jan Vlug 2023-10-09 06:32:01 UTC
confirming

Comment 3 Bob Relyea 2023-10-09 15:17:45 UTC
Can you provide more information. What servers are to accessing that you cannot connect with, or what cert chains are being rejected?

There was a recent update to ca-certificates to match it up with mozilla. Some certs were removed or restricted, but it could also be a collision with the signing certificates. To fix (or verify the change was intentional) we'd need the actual CA cert that's missing. The Certificate change or the server would tell us that information.

Thanks,
bob

Comment 4 Alexander Sosedkin 2023-10-09 15:19:40 UTC
Cannot reproduce, please provide more details.

In my testing, I had:
1. ca-certificates-2023.2.60_v7.0.306-1.0.fc38
2. google account with one contact added (verified through contacts.gmail.com)
3. said google account added in GOA through gnome-settings

I've
1. installed evolution-3.48.4-1.fc38.x86_64 (never had it installed before on this machine)
2. launched evolution

I've observed
1. evolution to launch and immediately start downloading email from gmail
2. "To Do" list on the right started populating with calendar events
3. under the Contacts tab, I see the google address book, clicking on it shows me a card with the one contact I have

Menu - Accounts - unfold GOA account - unfold Address Books - Address Book - Edit
reveals the URL to be
https://www.googleapis.com/carddav/v1/principals/$ACCOUNT_NAME/lists/default/
That by itself also doesn't help me reproduce the failure, as
`gnutls-cli --ca-verification www.googleapis.com:443` and
`openssl s_client www.googleapis.com:443` seem to connect just fine
(I'll attach the logs).

Please share all the relevant customizations one needs to reproduce the failure
and explicitly post the (possibly redacted) URL you're using for CardDaV.
Without that, I'm afraid I don't know how to untangle your problem.

Comment 5 Alexander Sosedkin 2023-10-09 15:21:10 UTC
Created attachment 1993117 [details]
logs for connecting to www.googleapis.com with gnutls

Comment 6 Alexander Sosedkin 2023-10-09 15:21:40 UTC
Created attachment 1993118 [details]
logs for connecting to www.googleapis.com with openssl

Comment 7 Jan Vlug 2023-10-09 15:24:39 UTC
The problems seems to be resolved for me after an update today.
I think this update fixed the issue for me:
    Upgrade  ca-certificates-2023.2.60_v7.0.306-1.0.fc38.noarch @updates
    Upgraded ca-certificates-2023.2.60-2.fc38.noarch            @@System

Comment 8 Alexander Sosedkin 2023-10-09 15:34:17 UTC
But that's a downgrade, so it means the problem is not solved:

$ rpmdev-vercmp 2023.2.60-2.fc38 2023.2.60_v7.0.306-1.0.fc38
2023.2.60-2.fc38 < 2023.2.60_v7.0.306-1.0.fc38

Comment 9 Alexander Sosedkin 2023-10-09 15:50:01 UTC
In bz1850512#c40 it was suggested that there might be problems
if one updates ca-certificates without restarting evolution.
Does restarting evolution help?

Also, bears repeating, please post URLs you use
from Menu - Accounts - <problematic address book> - Edit,
at least up to and including the domain part of them.
It's the single most important starting piece of the puzzle here.

Comment 10 Jan Vlug 2023-10-09 16:06:52 UTC
I did for sure not intentionally downgrade. Actually I also am pretty sure no downgrade was done.

# dnf list installed | grep -i ca-certificates
ca-certificates.noarch                             2023.2.60_v7.0.306-1.0.fc38         @updates

It could very well be the case that the issue was caused by updates without restarting evolution. Actually, now I think this was the root cause of the issue.

I use a self hosted Nextcloud with Let's Encrypt certificates, and a Microsoft Exchange account configured in GNOME Online Accounts.

Comment 11 Bob Relyea 2023-10-10 00:07:32 UTC
I'm going to assume this is the same issue as bug 1850512. If that turns out to be wrong Jan, feel free to reopen this bug.

*** This bug has been marked as a duplicate of bug 1850512 ***

Comment 12 John Dodson 2023-10-10 11:52:11 UTC
Giving a dummy reply to eliminate my "needs info" request...


Note You need to log in before you can comment on or make changes to this bug.