# Fix “Certificate fingerprint changed” in QuerentDB

> Why QuerentDB refuses a connection when a pinned certificate changes, how to check the new fingerprint with your database admin, and how to trust it.

Source: https://www.keepware.dev/guides/querentdb-certificate-fingerprint-changed · Product: QuerentDB (https://www.keepware.dev/querentdb) · Published 2026-11-11

QuerentDB, a desktop database client by Keepware, pins a self-signed server certificate the first time you trust it. When the server later presents a different certificate, QuerentDB refuses to connect and shows **Certificate fingerprint changed**, with the fingerprint it trusted before and the one it received now. Either the server really has a new certificate (it was reinstalled, upgraded or its certificate was renewed), or someone between you and the server is intercepting the connection. Check the new fingerprint with whoever runs the database before you trust it.

## What does the error look like?

Opening the connection shows **Certificate fingerprint changed** in the tab, with the **Before** and **Now** fingerprints, **Retry** and **Edit connection**:

![Certificate fingerprint changed in a tab: the fingerprint before and now](https://www.keepware.dev/guides/querentdb-certificate-fingerprint-changed/cert-changed-tab.png)

In the connection's sheet, **Test** shows the same under **TLS**: **Certificate fingerprint changed. Connection refused**, with **Trusted before** and **Received now**. The accounts point there.

![The connection sheet: the changed fingerprint under TLS, and The server did change its certificate](https://www.keepware.dev/guides/querentdb-certificate-fingerprint-changed/cert-changed-card.png)

## How do I check the new fingerprint?

Ask your database admin for the SHA-256 fingerprint of the certificate the server uses now, and compare it with **Received now**. For example, on the server:

```sh
# MySQL (the certificate MySQL generated for itself)
openssl x509 -in /var/lib/mysql/server-cert.pem -noout -fingerprint -sha256

# PostgreSQL (ssl_cert_file in postgresql.conf)
openssl x509 -in /path/to/server.crt -noout -fingerprint -sha256
```

`openssl` prints the fingerprint with colons between the bytes; QuerentDB shows the same hex digits without them.

## How do I trust the new certificate?

Only after the fingerprints match: open the connection's sheet, choose **Test**, then **The server did change its certificate**, and confirm with **Verified: trust the new fingerprint**. Choose **Save**. From then on, QuerentDB pins the new certificate and refuses any other.

In a team workspace, the pinned certificate is part of the shared connection, so an Admin (or whoever may edit the connection) trusts the new fingerprint once for everyone.

## What if the fingerprints don't match?

Don't connect. A different fingerprint that your admin can't explain means the connection may be intercepted (a man-in-the-middle attack). Check the network path: a proxy, a VPN or a captive portal can present its own certificate.

## How do I avoid this in the future?

- Use a certificate signed by a certificate authority your computer trusts. QuerentDB then checks it against the authority instead of pinning a fingerprint, and a renewed certificate doesn't trigger this.
- If you rotate self-signed certificates on purpose, tell the people who connect, with the new fingerprint.
- **Forget** (next to **Pinned certificate** under **TLS**) removes a pin; the next connection asks you to trust the certificate again.

## FAQ

### Why did this start after I upgraded MySQL?

MySQL 8 creates its own certificate when it starts with an empty data directory, for example in a new container. A fresh container means a new certificate, so the fingerprint changes.

### Does this apply to SSH tunnels too?

Yes, for the bastion's host key: **Host fingerprint changed. Connection refused**, with **Verified: trust the new fingerprint** once you've checked it. See [Connect through an SSH tunnel](https://www.keepware.dev/guides/querentdb-ssh-tunnel).
