---
title: "Router identity changed: connection refused"
description: "What to do when MikroWizard refuses to connect because a router's certificate or SSH host key changed."
url: "https://mikrowizard.com/docs/router-identity-changed/"
updated: "2026-11-25"
category: "Troubleshooting & FAQ"
---

# Router identity changed: connection refused

Free MikroTik only

With [router identity verification](https://mikrowizard.com/docs/router-identity-verification/) set to *Pin certificate* or *Pin host key*, MikroWizard remembers each router's API-SSL certificate and SSH host key. When a router presents a different one, MikroWizard refuses the connection, so it never sends credentials to a device that took over the router's address.

## What you see

- A **Critical** event *API-SSL certificate changed* or *SSH host key changed* in [Device logs](https://mikrowizard.com/docs/device-logs/) and on the device's **Device Events** tab, with the trusted and the new fingerprint.
- The device stops updating (it looks offline).

## Fix it

1. **Check why it changed.** Expected reasons: a new certificate on the router, a reinstalled or replaced router, a reset configuration. If you don't know why it changed, check the device on the network before you continue.
2. If the change is expected, edit the device and click **Reset** next to *Trusted router identity*. The next connection is trusted again.

Resetting needs *Full* access to Devices. Each reset is recorded in the [System logs](https://mikrowizard.com/docs/system-logs/).

## Verify with CA file

In *Verify with CA file* mode, the router's certificate must be signed by a CA in the configured file (for example `/conf/ssl/routers-ca.pem`, which is `/opt/mikrowizard/ssl/routers-ca.pem` on the host). A certificate from another CA makes the connection fail.
