You are here

Integrate KeePassXC portable with Firefox Portable via the addon

20 posts / 0 new
Last post
getco
Offline
Last seen: 2 years 1 month ago
Joined: 2008-08-03 05:31
Integrate KeePassXC portable with Firefox Portable via the addon

Has anyone tried integrating KeePassXC portable with Firefox Portable via the KeePassXC-Browser addon (https://addons.mozilla.org/en-US/firefox/addon/keepassxc-browser/)

I think there might be a problem with the fact that FF is portable and KeePassXC can't intercept it somehow?

Any ideas?

jfk80
Offline
Last seen: 3 months 2 weeks ago
Joined: 2018-04-09 04:00
I have the same problem here

I have the same problem here with Chrome Portable:

KeePassXC portable with Chrome Portable via the KeePassXC-Browser addon

Any ideas how that could work?

Regards Jacek

getco
Offline
Last seen: 2 years 1 month ago
Joined: 2008-08-03 05:31
I can see "KeePassXCPortable

I can see "KeePassXCPortable\App\KeePassXC\keepassxc-proxy.exe" running when I launch Firefox so I guess some integration did occur, they're just not able to communicate with each other. I'm getting this error: "Cannot encrypt message or public key not found. Is native messaging or support for your browser enabled in KeePassXC?"

jfk80
Offline
Last seen: 3 months 2 weeks ago
Joined: 2018-04-09 04:00
Seems nobody else use both

Seems nobody else use both portable... ;(

jfk80
Offline
Last seen: 3 months 2 weeks ago
Joined: 2018-04-09 04:00
No ideas? Would be great to

No ideas? Would be great to fix the issue.

Regards Jacek

getco
Offline
Last seen: 2 years 1 month ago
Joined: 2008-08-03 05:31
An appeal to the more

An appeal to the more knowledgeable members of this forum - please, at least give us some directions what to look for. It's obviously not a user-specific issue, but something more global.

jfk80
Offline
Last seen: 3 months 2 weeks ago
Joined: 2018-04-09 04:00
The problem is, if you use

The problem is, if you use both KeePassXC portable with chrome or firefox portable, you are not able to connect the datebase of keepass with the portable browser. You just get this error:

KeePassXC-Browser has encountered an error:
Timeout or not connected to KeePassXC

I already take a look in google to fix the issue, but nothing helps. Seems to be a problem when you use both programms as portable versions.
Hope it helps a little bit.

Regards Jacek

mjashby
Offline
Last seen: 3 months 3 days ago
Developer
Joined: 2008-09-19 13:35
KeePassXC-Browser addon

Seems obvious to me. The 'problem' with the Add-On is probably the most obvious one, i.e.. It has been written specifically to detect the KeePass database only if it can first detect an installed version of the KeePass program via the Windows system. It has no way of detecting that a portable version of the KeePass software exists and so makes no attempt to locate its database.

The correct approach would be to ask the Add-on developer if it is possible to adapt the add-on to access a KeePass database created by a Portable version. This would probably involve a settings option with which a User could specify the location of the database to be accessed.

jfk80
Offline
Last seen: 3 months 2 weeks ago
Joined: 2018-04-09 04:00
No changes here? many many

No changes here? many many months pass through and that still does not work, right?

Regards Jacek

John T. Haller
John T. Haller's picture
Online
Last seen: 7 min 4 sec ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Publisher, As Answered Above

As stated above, you need to contact the publisher of the extension. It only works with the installed version by design. If you want otherwise, they need to change it.

Sometimes, the impossible can become possible, if you're awesome!

jfk80
Offline
Last seen: 3 months 2 weeks ago
Joined: 2018-04-09 04:00
With the newest version of

With the newest version of chrome portable and KeePassXC it works!!!

Regards Jacek

MunemWp
Offline
Last seen: 1 month 1 day ago
Joined: 2019-06-19 03:20
Does it work with

Does it work with FirefoxPortable now as well now?

Drumsal
Offline
Last seen: 1 year 2 weeks ago
Joined: 2013-12-19 06:50
No news, unfortunately!

No news, unfortunately!

Totoche
Offline
Last seen: 1 week 5 days ago
Joined: 2008-11-19 15:25
I have the same problem too..

I have the same problem too...

Is someone have make a test with KeePassXCPortable and a installed X-browser ?

As it did not work with both in portable version, I have tried with KeePassXCPortable and installed browser (Firefox) and it don't work too...

could you do the same test (and with other browsers installed), that would allow to advance
(...because maybe it's just a problem with the extension 'KeePassXC-Browser' and the portable versions...)

ty

spaetz
Offline
Last seen: 8 months 2 days ago
Joined: 2020-02-20 08:14
WORKING FOR ME

Hi there, I had the problem that Portable Keepassxc (2.5.3) only ever led to a "Key Exchange failed" message. I have it solved for me now, perhaps it works for others. I posted an keepassxc issue at (https://github.com/keepassxreboot/keepassxc/issues/4348) but it was immediately closed as they don't want to be bothered with Portable-specific issues.

Initial Problem
Some things worked:
I had a registry key under "Computer\HKEY_CURRENT_USER\Software\Mozilla\NativeMessagingHosts\org.keepassxc.keepassxc_browser",
it pointed to the correct org.keepassxc.keepassxc_browser_firefox.json file
which pointed to a correct path "C:\Users\spaetz\bin\PortableApps\KeePassXCPortable\App\KeePassXC\keepassxc-proxy.exe"

When I started Firefox, I got a running keepassxc-proxy.exe process as a Firefox child process. However, trying to connect, all I got is a "key exchange failed" error. Turning on add-on debugging led to the same result and not more helpful information.
When I started keepassxc and turned off the use of a proxy, starting Firefox actually started a keepassxc process, however all I still got was a "key exchange failed" error.

NO combination of options, deleting of keepassxc and/or the broweser extension, deletion of registry entries, or using a fresh Firefox profile helped.

Possible Solution

I noted that there are actually 2 binaries:
BINARY1:
C:\Users\spaetz\bin\PortableApps\KeePassXCPortable\KeePassXCPortable.exe (248kb) and
BINARY2:
C:\Users\spaetz\bin\PortableApps\KeePassXCPortable\App\KeePassXC\KeePassXC.exe (7094kb)

The latter is also the directory which contains the keypassxc-proxy.exe. The binary in the former directory is what is started when one starts Keepassxc through the PortableApps menu.

IF I directly start the latter binary, the Firefox extension is able to connect to the running keepassxc. If I start the former, I will get a key exchange failed error. Somehow, in this case the proxy will probably try to talk to the wrong binary. (not sure what weird wrapper the first binary is).

I autostart BINARY2 now on system start and that seems to do the trick for me. I realize that this is not the fault of keepassxc, but given the multitude of reported errors and the unhelpful error message I think this might be of use for other users of the Portable Version. It might be useful on the wiki if confirmed by other users of the portable version on windows....

Axel_portable
Offline
Last seen: 7 months 3 weeks ago
Joined: 2020-02-27 04:17
keepassxc.exe

*Possible Solution

I noted that there are actually 2 binaries:
BINARY1:
C:\Users\spaetz\bin\PortableApps\KeePassXCPortable\KeePassXCPortable.exe (248kb) and
BINARY2:
C:\Users\spaetz\bin\PortableApps\KeePassXCPortable\App\KeePassXC\KeePassXC.exe (7094kb)

The latter is also the directory which contains the keypassxc-proxy.exe. The binary in the former directory is what is started when one starts Keepassxc through the PortableApps menu.

IF I directly start the latter binary, the Firefox extension is able to connect to the running keepassxc. If I start the former, I will get a key exchange failed error. Somehow, in this case the proxy will probably try to talk to the wrong binary. (not sure what weird wrapper the first binary is).*

Same here: if I open keepassxc.exe NOT keepassxcportable.exe it works.

FpXdZ86
Offline
Last seen: 4 months 3 weeks ago
Joined: 2017-12-28 07:02
Also works for me. But then

Also works for me. But then your Keepass is not really portable anymore.
It will save settings in %userprofile%\AppData\Local\KeePassXC instead of %PortableApps%\KeePassXCPortable\Data\settings.

For me it's ok. But you should be aware of this.

berenjrr
Offline
Last seen: 4 months 1 week ago
Joined: 2020-06-09 05:18
just wanted to report that

just wanted to report that keepassxc has a portable version on their website that works correctly.
i tried replacing the files under \PortableApps\KeePassXCPortable\App\KeePassXC but launching from KeePassXCPortable.exe the database can't connect.
hope devs can take a look at it....in the meantime i am using official version linked to the portableapps launcher.

John T. Haller
John T. Haller's picture
Online
Last seen: 7 min 4 sec ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Same Files

The files within KeePassXCPortable\App\KeePassXC are the same files you just unzipped from the publisher's version.

Sometimes, the impossible can become possible, if you're awesome!

ReinerB
Offline
Last seen: 1 week 48 min ago
Joined: 2020-10-12 19:10
Integrate KeePassXC portable with Chrome

I am using portable KeyPassXC with Chrome installed on the computer provided by my employer. I do get the same message about KeyPassXC not being able to connect through the Chrome extension. The executable is named KeePassXC.exe but it does not work.

What should I do?

Thanks a lot

Log in or register to post comments