TranslateProject/sources/tech/20220210 Troubleshooting -Unacceptable TLS certificate- Error in Linux.md
2022-02-11 09:04:25 +08:00

4.7 KiB
Raw Blame History

Troubleshooting “Unacceptable TLS certificate” Error in Linux

When it comes to SSL/TLS certificates, you may come across a variety of issues, some related to the browser or a problem in a websites back-end.

One such error is “Unacceptable TLS certificate” in Linux.

Unfortunately, theres no “one-solves-it-all answer to this. However, there are some potential solutions that you can try, and here, I plan to highlight those for you.

When do you encounter this TLS Certificate issue?

In my case, I noticed the issue when adding the Flathub repository via the terminal, a step that lets you access the massive collection of Flatpaks when setting up Flatpak.

However, you can also expect to encounter this error when installing a Flatpak app or using a Flatpak ref file from a third-party repository via the terminal.

Some users noticed this issue when using their organizations recommended VPN service for work on Linux.

So, how do you fix it? Why is this a problem?

Well, technically, its either of two things:

  • Your system does not accept the certificate (and tells that its invalid).
  • The certificate does not match the domain the user connects to.

If its the second, you will have to reach out to the websites administrator and fix it from their end.

But if its the first, you have a couple of ways to deal with it.

1. Fix “Unacceptable TLS certificate” when using Flatpak or adding GNOME Online Accounts

If you are trying to add Flathub remote or a new Flatpak application and notice the error in the terminal, you can simply type in:


    sudo apt install --reinstall ca-certificates

This should re-install the trusted CA certificates, in case there has been an issue with the list in some way.

In my case, when trying to add the Flathub repository, I encountered the error, which was resolved by typing the above command in the terminal.

So, I think that any Flatpak-related issues with TLS certificates can be fixed using this method.

2. Fix “Unacceptable TLS certificate” when using Work VPN

If you are using your organizations VPN to access materials related to work, you might have to add the certificate to the list of trusted CAs in your Linux distro.

Do note that you need the VPN service or your organizations administrator to share the .CRT version of the root certificate to get started.

Next, you will need to navigate your way to /usr/local/share/ca-certificates directory.

You can create a directory under it and use any name to identify your organizations certificate. And, then add the .CRT file to that directory.

For instance, its usr/local/share/ca-certificates/organization/xyz.crt

Do note that you need root privileges to add certificates or make a directory under the ca-certificates directory.

Once you have added the necessary certificate, all you have to do is update the certificate support list by typing in:


    sudo update-ca-certificates

And, the certificate should be treated valid by your system whenever you try to connect to your companys VPN.

Wrapping Up

An unacceptable TLS certificate is not a common error, but you can find it in various use cases, such as connecting to GNOME Online accounts.

If the error cannot be resolved by two of these methods, it is possible that the domain/service you are connecting to has a configuration error. In that case, you will have to contact them to fix the issue.

Have you faced this error anytime? How did you fix it? Are you aware of other solutions to this problem (potentially, something thats easy to follow)? Let me know your thoughts in the comments below.


via: https://itsfoss.com/unacceptable-tls-certificate-error-linux/

作者:Ankush Das 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出