smorks / keepassnatmsg

KeePass plugin to expose credentials securely to a browser using Native Messaging
GNU General Public License v3.0
268 stars 25 forks source link

Running KeePassXC or KeePass2 are not noticed from any KeePassXC-Browser or KeePassXC-Mail Extension #96

Open tps800 opened 2 years ago

tps800 commented 2 years ago

After installing KeePassNatMsg plugin into KeePass2 version 2.51, then restarting KeePass2 no errors are given at start. Installing NativeMessaging Host does not give rrors either. Installing KeePassXC-Browser in Vivaldi, Chrome, Chromium, Edge, Brave is ok too. Same with Firefox and Thunderbird.

Now trying to connect to an open database does nothing. No popup to give a name to the key used for connections. It is just: nothing happens.

Seen with Ubuntu, xUbuntu, lUbuntu, and Debian.

mono is installed in all cases full.

smorks commented 2 years ago

are you using the .plgx or the .dll version of KeePassNatMsg?

also, are you saying that this only happens on Firefox, but it works fine in the chrome-based browsers? Or do you mean that it doesn't work in any browser?

can you post a screenshot of your KeePassNatMsg Options screen (just the general tab for now)?

tps800 commented 2 years ago

It is more complicated. It works after a second attempt for:

It does not work with:

It does not matter if the proxy was generated within KeePass2 for the browser and is active or not. In some cases it is necessary to restart KeePass2 and the browser to have a generated connection work (Vivaldi, Chromium, Edge). It differs between OS. With some browser versions it was impossible to connect at all.

Screen-2022-05-15_00-03-13

tps800 commented 2 years ago

are you using the .plgx or the .dll version of KeePassNatMsg?

Tried both, did not see any difference.

floviolleau commented 1 year ago

Hi @tps800 and @smorks ,

Thanks for all work you've done @smorks here!

Please have a look here for ubuntu: https://github.com/keepassxreboot/keepassxc-browser/issues/1681#issuecomment-1216614363

I added in /etc/apparmor.d/local/usr.bin.firefox:

/usr/bin/keepassxc-proxy Uxr,
/home/user/.keepassnatmsg/run-proxy.sh Uxr,

I got the popup to link firefox keepassxc extension and keepass2 (mono)

But now, I do not have suggestions in login forms

So still not working for me. Any clues?

smorks commented 1 year ago

hi @floviolleau! sorry, i'm not overly familiar with how apparmor works, but that run-proxy.sh is just a shell script that executes mono keepassnatmsg-proxy.exe, not sure if that's helpful or not.