Skip to content
Contents
GuidesOpenWrt

IPsec asks for an RSA private key on the ER605 v2 despite PSK authentication

When selecting PSK but receiving an RSA private key error, first verify which connection the failure actually matches. The same remote address may correspond to multiple defined connections.

Applies to · TP-Link ER605 v2 · SNAPSHOT r35067-85e15f34ac · Libreswan

What to check

Verify one end at a time the actual loaded connection name, IKE identity, and authentication method.

Connect over Ethernet and run the following commands in an SSH session on the router.

ipsec status
logread -e pluto

How to interpret the result

In the Pluto log, check the pairing connection name, peer identity, and authentication method. If a different connection is selected, correct the matching criteria. If the expected connection is matched but still requires RSA, verify the configured authentication method in the generated configuration and double-check both peer identities.

Verify and recover

Check that IKE establishes a security association and that permitted traffic passes between the intended subnets. Revert only the test connection if negotiation or traffic fails.

Related guide · Identify a new device from OpenWrt lease and access logs

Explore hardware

Devices mentioned

Comments