Report this

What is the reason for this report?

How to connect pass with proton mail-bridge --cli

Posted on June 1, 2023

I have been following tutorials for protonmail-bridge --cli including creating and exporting a ProtonMail Bridge key using:

gpg --batch --passphrase '' --quick-gen-key 'ProtonMail Bridge' default default
gpg --export -a "ProtonMail Bridge"
// pass was already installed so that command was skipped
pass init "ProtonMail Bridge"

// then I tried to run protonmail-bridge --cli and get the following errors
root@IHC:~# protonmail-bridge --cli
WARN[0000] Failed to add test credentials to keychain    error="failed to create item: Object does not exist at path “/org/freedesktop/secrets/collection/login”" helper="*keychain.SecretServiceDBusHelper"
WARN[0000] Failed to add test credentials to keychain    error="Object does not exist at path “/org/freedesktop/secrets/collection/login”" helper="*secretservice.Secretservice"
INFO[0000] Migrating keychain helper                    

            Welcome to Proton Mail Bridge interactive shell
                              ___....___
    ^^                __..-:'':__:..:__:'':-..__
                  _.-:__:.-:'':  :  :  :'':-.:__:-._
                .':.-:  :  :  :  :  :  :  :  :  :._:'.
             _ :.':  :  :  :  :  :  :  :  :  :  :  :'.: _
            [ ]:  :  :  :  :  :  :  :  :  :  :  :  :  :[ ]
            [ ]:  :  :  :  :  :  :  :  :  :  :  :  :  :[ ]
   :::::::::[ ]:__:__:__:__:__:__:__:__:__:__:__:__:__:[ ]:::::::::::
   !!!!!!!!![ ]!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![ ]!!!!!!!!!!!
   ^^^^^^^^^[ ]^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[ ]^^^^^^^^^^^
            [ ]                                        [ ]
            [ ]                                        [ ]
      jgs   [ ]                                        [ ]
    ~~^_~^~/   \~^-~^~ _~^-~_^~-^~_^~~-^~_~^~-~_~-^~_^/   \~^ ~~_ ^


>>> info
>>> No active accounts.  Please add account to continue.

What the heck am I doing wrong, and how can I fix it? I had it installed and added an account, but it kept not recognizing my keychain helper.

I DO have a paid business account with ProtonMail.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

Did you try running pass init <GPG-ID>, where <GPG-ID> is one of your gpg key IDs? You can create a new gpg key gpg --full-generate-key or reuse an existing one that you own, you can use gpg -k to check what keys you already have.

If this does not help, I’ve seen this before reported on the ProtonMail repository here:

https://github.com/ProtonMail/proton-bridge/issues/190

I could suggest following the suggestions from the answer to that issue.

Let me know how it goes!

Best,

Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.