Updated

What you see

Importing a .conf file or scanning a QR code in the official WireGuard app fails with an error about an invalid or unrecognized key — often naming a field like Jc, Jmin, S1 or H1.

What it means

The official app accepts only standard WireGuard fields. AmneziaWG configs add extra ones for its disguise (Jc, Jmin, Jmax, S1, S2, H1–H4, and in newer versions S3, S4 and I1–I5). The app doesn't skip lines it doesn't know; it rejects the whole file.
Quick fix
Use the AmneziaVPN app for AmneziaWG configs. It opens plain WireGuard configs too.

Causes and how to fix them

1. It's an AmneziaWG config

Install AmneziaVPN (Windows, macOS, Linux, iOS and Android) and import the same file or QR code there. Deleting the extra lines makes the file import into the WireGuard app, but it won't connect: the server expects the disguised handshake.

2. The text got changed on the way

Some chat apps and email clients add formatting, curly quotes or line breaks when a config is pasted as text. Send the .conf file itself, or scan the QR code, instead of copying the text.

3. A key is cut off

WireGuard keys are 44 characters long and end in “=”. If one was cut off while copying, the app reports it as invalid. Download the config again rather than repairing it.

Using Nullsify?

A Nullsify server running AmneziaWG gives configs for the AmneziaVPN app. If you'd rather use the official WireGuard app, switch the server to WireGuard from the dashboard — everyone keeps their access.
Free for 1 server. Bring your own VPS — Nullsify configures WireGuard, AmneziaWG or VLESS on it for you.

Related problems

Read more