-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extension Cannot Connect to KeePassXC - "Key Exchange Was Not Successful" #1399
Comments
Check https://github.com/keepassxreboot/keepassxc-browser/wiki/Troubleshooting-guide and report your findings. |
I believe this has to do with some recent changes in Firefox, another plugin I use (Open with) also stopped working at the same time as KeePassXC stopped working in the most recent update ("Open with cannot communicate with the outside world"). |
Please check that your distro is not providing Firefox as Snap/Flatpak. Use a "normal" package manager for browsers instead. |
I will walk through the troubleshooting guide and see if I can pinpoint more closely what goes wrong. |
You can also try a different browser. I've seen a few cases where something went wrong when packaging a browser update for a certain distro. Another update (or downgrade) has fixed the issue. |
Ok reporting back now. The problem was that the org.keepassxc.keepassxc_browser.json file in my browsers profile directory was removed or not recreated in the most recent update. It is fixed by creating this file: /home/USER/.PROFILE_DIRECTORY/native-messaging-hosts/org.keepassxc.keepassxc_browser.json Contents:
|
Thanks @JKAbrams - that helped as well in my situation. |
@JKAbrams This works for me as well; I use Librewolf (Firefox Quantum fork) and the Thanks |
@JKAbrams That helped resolve the issue for me as well, but my path was also a little different. I copied |
Still have problem with that in 2022. debug report: KeePassXC - 2.7.0 KeePassXC - Version 2.7.0 Qt 5.15.2 Operating system: Debian GNU/Linux 11 (bullseye) Enabled extensions:
Cryptographic libraries:
Application BasicsName: Firefox Name: KeePassXC-Browser |
If you are using a custom install of the extension itself then you need to add that extension id to the native messaging json. You might also have a firejail blocking the proxy. Or tor browser changed their folders again. Or any number of a thousand reasons. |
@Francis1993Z You can use |
Can it be Apparmor blocking keepasxc-proxy?
I dont know apparmor that much. [EDIT] The Fix: By the way, I use default system keepassxc-proxy (disabled custom proxy path), installed by make install, and native messaging path is set to ~/.tb/tor-browser/Browser/TorBrowser/Data/Browser/.mozilla/native-messaging-hosts I think this trick should be added to Troubleshooting guide. |
Had the same issue on Debian 12 Bookworm (Testing) using Chromium (other like Vivaldi and Firefox are OK). To resolve I followed the hint @JKAbrams gave above and
Note: allowed_origins may be wrong here (copied from vivaldi) |
I had a similar issue with connecting the database. This is my fix for those struggling to get this to work in Debian/Whonix with Kicksecure. Find the name paths using AVC apparmor="DENIED" operation="open" profile="/**/*-browser/Browser/firefox" name="/home/user/.mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json" comm=[redacted]
AVC apparmor="DENIED" operation="exec" profile="/**/*-browser/Browser/firefox" name="/usr/bin/keepassxc-proxy" comm=[redacted] requested_mask="x" denied_mask="x" Open the Tor Browser AppArmor profile:
Add the following linesAfter
Restart AppArmor:
Now disable
|
Related thread: #281. |
In case it helps someone someday: I was unable to make the extension work in the Chrome instance started from my VSCode's launch configuration (with: I fixed the issue by copying So by adding the native messaging's manifest file to a global location. I guess the home folder used when launching Chrome from VS Code is not the current user's one. |
Had the same issue. Fixed it by first running |
Could you please contribute Whonix specific documentation here? |
Expected Behavior
The extension should be able to connect to desktop KeePass desktop application
Current Behavior
Every time a webpage with password fields loads or I try to manually re-connect the database, it gives me a "Key Exchange Was Not Successful" error.
Possible Solution
I had installed KeePassXC from the source code but rolling back to my Linux distro's (Arch Linux) officially packaged version resulted in the same problem.
(This didn't used to happen before; it just suddenly started recently.)
Steps to Reproduce (for bugs)
Debug info
KeePassXC - unknown
KeePassXC-Browser - 1.7.9.1
Operating system: Linux x86_64
Browser: Mozilla Firefox 91.0
The text was updated successfully, but these errors were encountered: