Skip to content

[Bug]: Can't trust custom Certificate Authority, only the self signed certificate #3287

@guillaumedsde

Description

@guillaumedsde

Checks before filing an issue

Mattermost Desktop Version

5.10.2

Operating System

Ubuntu 24.04.1 LTS

Mattermost Server Version

9.11.8

Steps to reproduce

  1. Open the mattermost desktop client and connect to an instance with a self-signed certificate
  2. Manually trust the certificate from the popup (which adds the certificate to ~/.config/Mattermost/certificate.json
    Image
  3. The trusted certificate expires and is renewed
  4. The popup to trust the certificate appears again

Expected behavior

There should be a way to point the Mattermost desktop client to the custom Authority's certificate instead of simply trusting the TLS certificate (which is bound to expire and be renewed).
Otherwise, the user is prompted to re-trust the certificate every time it expires (which can be frequent in modern environments with automatic renewal) which is not secure.

Observed behavior

A TLS certificate error pops up in the mattermost desktop client every time the TLS certificate of the server is renewed.

Log Output

[2025-01-23 13:19:49.181] [warn]  [App.Utils] Could not get server info for NetOPS Error: net::ERR_CERT_AUTHORITY_INVALID
    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:117806)
    at SimpleURLLoaderWrapper.emit (node:events:519:28)
[2025-01-23 13:19:49.277] [info]  [MattermostBrowser...] [NetOPS] [TAB_MESSAGING] Invalid certificate, stop retrying until the user decides what to do: Error: ERR_CERT_AUTHORITY_INVALID (-202) loading 'https://█████████████/'.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions