• Members 8 posts
    Dec. 17, 2020, 6:20 p.m.

    Thanks for making this software.  I already have PGP keys, which I migrated from Enigmail to OpenPGP. I run Thunderbird on my MacBook running MacOS 10.15.7. I also use the p=p Android client.

    I am experiencing some issues:

    I use two Thunderbird profiles but only one shows the p=p addon.

    Every few minutes (presumably when Thunderbird syncs with the server), there is a rapid succession of emails with subject “p≡p key management message - please ignore” appearing and disappearing in the Inbox. It has also happened that a number of them (in the TB profile that didn't show the p=p addon each time upon loading and many emails, in the other profile it happened just once with only one email) remained in the Inbox from where I deleted them.

    A number (but not all - why ?) draft emails cannot be decrypted even though I do not remember encrypting them, and they were drafted before installing p=p. After removing the p=p addon I could decrypt them again using OpenPGP, but to get this working I first had re-activate Enigmail and migrate all the keys again (after which I could disable enigmail again).

    The bar that's supposed to show the security status is only shown sometimes when it can't decrypt (grey bar) - then it's shown at the top of the email.

    What is the folder "pEp" (sub folder of the Inbox) for ? Can I delete it ?

    In the p=p preferences under the compatibility tab, once a file has been selected for import, the field can't be cleared anymore.

    I have removed the p=p addon for now, and hope you can make some changes. I'll be glad to try again.

    In your tutorial that is shown when first starting Thunderbird as well as on https://www.pep.security/docs/thunderbird.html it states that trustwords should be compared by phone, but I'd surmise that's not a very secure way of exchanging trustwords. Perhaps suggest using a more secure method, like Signal, instead ?

    The link https://www.pep.security/docs/thunderbird on https://www.pep.security/en/faq/ is incorrect, it should presumably be https://www.pep.security/docs/thunderbird.html

  • Dec. 18, 2020, 5:35 p.m.

    The E-Mails you see disappearing are used for grouping devices for syncing keys and eventually more things like calendar and contacts across all devices using this account.
    They will with an upcoming update be stored in the freshly created pEp folder so they do no longer trigger notifications and irritate users.
    If you disable sync for the account you will no longer see them.
    They should be gone after a couple of minutes.

    It is rather unlikely to intercept a phone call, credibly impersonating the other persons voice and doing this when there is a user initiated comparison of trust words.
    If you sync your own devices, this can be done quickly by just looking at the screens.
    You can of course do it with any other independent second channel of your choice , like an encrypted phone call or meeting people in person.

    Looking at your drafts problem would be easier if you could share Logs from your application.

  • Members 8 posts
    Dec. 18, 2020, 5:42 p.m.

    Where could I find these logs ?

  • Dec. 18, 2020, 5:44 p.m.

    In Thunderbird it is Extras>Developer Tools > Error Console, usually the shortcut is ctrl+shift+j.
    It allows us to see what TB & addons are doing.

  • Members 8 posts
    Dec. 18, 2020, 6:58 p.m.

    Ok, on Mac it's cmd+shift+j. I sent the log to you at support@pep.security.

    Wrt. the key management messages, if you have multiple identities a lot of extra messages for those other (non-default) identities appear that stay in the inbox. Only the default identity is stored in the pEp subfolder and eventually deleted.

  • Dec. 19, 2020, 9:01 a.m.

    Hi Axel, wow, you've run into a lot of issues. All those can be resolved. I'll try to answer when I find the time, likely tonight (10 hours from now).

    EDIT: Please let us know which OS (operating system) and which version of TB (Thunderbird) you're using. At a guess it's Windows since the add-on was only installed into one profile, on Mac we hit all profiles, and TB 68 as Enigmail still seems to work. Or are you referring to TB's new OpenPGP implementation in TB 78?

  • Members 8 posts
    Dec. 19, 2020, 2:24 p.m.

    I run Thunderbird 78.5.1 on my MacBook Pro (15 inch, 2018) running MacOS 10.15.7. I also use the p=p Android client on a Pixel 2. Without the pEp addon, OpenPGP works fine.

  • Dec. 19, 2020, 3:10 p.m.

    OK, let's see:

    Problem 1)

    I use two Thunderbird profiles but only one shows the p=p addon.

    Since TB 68, TB has the "profile per install" feature, that means that it distinguishes between regular release, beta and Daily installations. Each installation has one or more dedicated profiles, and it's not advisable to run a - say - beta installation in a release profile. Let's assume that you only have a regular release installation of 78. You can still have two or more profiles, one being the default for the installation. One Mac, which you have, we only install into the last used profile. On Windows, it's different, we present a list of all default profiles if there are multiple installations.

    How to install into the second profile: Open the profile folder of the profile where pEp was installed via "Help > Troubleshooting Information", Profile folder, Open Folder. In there is a folder "extensions" and in there you'll see the pEp add-on, it's called pEp4Tb@pEp.security.xpi. Start TB on the other profile and install the add-on from file. Sorry about this clumsy install, our market strategists were of the opinion that Mac users only have one install and one profile.

    Problem 2)

    emails with subject “p≡p key management message - please ignore”
    What is the folder "pEp" (sub folder of the Inbox) for ? Can I delete it ?
    It has also happened that a number of them remained in the Inbox from where I deleted them.

    These e-mail are used for synchronising between multiple devices. That's called "pEp Sync". You can globally disable pEp Sync, or you can disable it per TB identity. Please check the pEp Options which you can find under Tools or in the Hamburger/Application menu. After arriving in the inbox, Sync messages are moved to the pEp folder. Please don't delete that folder. A clean-up happens every 10 minutes and older message are removed from the pEp folder. They are also removed from the inbox. If they don't get removed from the inbox, then the inbox needs a repair since its index is corrupt. To repair the inbox, right-click, select "Properties" from the context menu, then "Repair Folder". For an IMAP folder, that will likely re-download all messages. You can also remove those messages manually.

    Problem 3)

    A number draft emails cannot be decrypted even though I do not remember encrypting them

    Sadly, once you enable OpenPGP in TB, all drafts are encrypted. There has been some discussion in the TB community to make draft encryption optionally like it was in Enigmail, but I don't know whether or when that will be implemented, see bugzilla.mozilla.org/show_bug.cgi?id=1672047. pEp doesn't have that problem since it has the concept of a "trusted server". So if you store your drafts on a trusted server, or in Local Folders, which you can set to "trusted", then drafts are not encrypted. Also see bugzilla.mozilla.org/show_bug.cgi?id=1650551#c28

    If after installing pEp for Thunderbird something couldn't be decrypted, then the installation didn't import your private key(s).

    Here some background. Enigmail in TB 68 or earlier used GnuPG as a backend. The OpenPGP implemetation in TB uses the different backend called RNP. So all that Enigmail for TB 78 does is migrate the keys from GnuPG to RNP.

    The installation of pEp migrates keys from GnuPG to pEp's own storage. On Mac, that's in your home directory in a subdirectory .pep. The database consists of keys and management DB files. You can also import you keys manually, that works for private and public keys.

    So I suggest the following: Delete the .pep directory (I hope it's not locked, not a Mac expert) and restart the Mac. That should give you a fresh start. Then install pEp for Thunderbird again. That should migrate all the keys from GnuPG, but not any keys you might have created in TB using OpenPGP. If you've always used the same private key, that key should have been imported. Or you can import it manuall.

    Problem 4)

    In the p=p preferences under the compatibility tab, once a file has been selected for import, the field can't be cleared anymore.

    Yes, we'll look into that in a future version. However, use the browse button to select another key to import. Clearing the field would just be a cosmetic option.
    EDIT: It's s file picker field and the content can't be cleared. Check the "new mail sound" in TB, that also can't be cleared. If you find it totally annoying, we could clear the related preference on every restart.

    Problem 5)

    tutorial states that trustwords should be compared by phone, but I'd surmise that's not a very secure way ...

    Will refer that to the product designers.

    Problem 6)

    The link https://www.pep.security/docs/thunderbird on https://www.pep.security/en/faq/ is incorrect, ...

    Will refer that to our web designers. It's the:
    your question might be covered by our user manual which can be found at https://www.pep.security/docs/thunderbird

  • Dec. 19, 2020, 4:04 p.m.

    Hi, Alex,

    the side channel for Trustwords is not dependent on cryptographic features but on the impression a person has if he or she is really talking to the expected person or not. Therefore, cryptographic side channels don't help.

    The problem of the Turing test is comparable. While the Turing Test is checking “am I talking to a real person”, the Trustwords check contains the check for “am I talking to a real person AND is this really the very person I want to exchange text messages with”. People usually are hard to fox when they're having a physical meeting with a person they know. It's less good if they've got a video conference or a phone call, but most people still become skeptical if someone wants to play a role of another person there in case they know this person.

    Yours,
    VB.

  • Members 11 posts
    Aug. 23, 2021, 3:02 p.m.

    Hi Joerg,

    You mentioned:

    ,,The installation of pEp migrates keys from GnuPG to pEp's own storage. On Mac, that's in your home directory in a subdirectory .pep. The database consists of keys and management DB files. You can also import you keys manually, that works for private and public keys,,

    Can export all PRIVATE and public out of the data in the .pep folder? Or with another way?

    I unterstand the idea of this „inner circle“ that private keys will not and do not have to be touched (smooth and inner circle running exchanging als the keys automatically while writing emails and after resetting email accounts etc.)

    But in case the company of pEp will quit and the plugin will be out of service, I need all PRIVATE and public keys (which were collected and created of the years by using pEp) to load them in another program to maintain access to all of my emails for life (even after uninstalling pEp).

    Hopefully you can help and show me a solution.

    Thx

    Marc

  • Aug. 26, 2021, 8 a.m.

    Hi there,

    sorry about the late reply. I have been on vacation (and still am).

    If I understand the question correctly, you want to export keys from pEp's key store.
    Sadly, there is no UI tool to do that, but you can open the keys.db SQLite file with any SQLite tool, for example the UI tool DB Browser for SQLite, and from the keys table export the key data like so:
    Click on the tpk column into the cell representing the key you want to export.
    On the RHS, click the Export icon (far right, icon with a floppy disk).
    Export the blob as binary key with .bin extension.

    GnuPG for example can import such files.

    I hope that helps.

  • Aug. 26, 2021, 10:26 a.m.

    Regarding key management, there is a CLI Tool in the making, but it will take some more time till we can release it.

    Till then, there are notes listed here: https://dev.pep.foundation/Thunderbird#key-management

  • Members 11 posts
    Sept. 2, 2021, 10:55 p.m.

    Hi Joerg,

    thank you very much. It worked. Now, in my opinion, nothing stands in the way of long-term use of the programs.

    Thank you for doing this great program! And especially on the iPhone! It is the only easy to use, secure and functional email client with PGP integration that has been developed from scratch. Just great! Thx, thx, thx!

    Please enjoy your vacation :)

    Greetings

    Marc

  • Members 11 posts
    Sept. 2, 2021, 11:02 p.m.

    Also here:

    Thank you very much for the information! Helped a lot.

    I think a GUI interface for (Export/Import) that the experienced user can activate form the plugins settings would be wonderful!

    @alle: I just sent a list of improvements to support and contact. On this basis we can continue to exchange ideas and improve the program. I am excited!

  • Members 11 posts
    Sept. 5, 2021, 2:54 a.m.

    Hi,

    I have installed sqlite3 via homebrew on my mac.

    I copy paste the sqlite3 file into my .pep folder and started sqlite3.

    Unfortunately the command lines given here do not work for me. Can you show me how to do it?

    What I did so far is: .open keys.db
    Than entered the command: SELECT writefile(‘key.sq’, tpk) FROM keys WHERE primary_key = ‘’ where secret = 1;
    Outcome: Error: near "where": syntax error

    Can you please help me? I think I am close but do not know to do it exactly. Thank you so much!

  • Sept. 5, 2021, 7:53 a.m.

    Looks like (at least) the where clause is wrong: where <cond1> <logical> <cond2> ..., for example where primary_key = "xyz" and secret = 1;

    P.S.: Oops, that's wrong in the docu, @sva: Please fix this.

  • Members 11 posts
    Sept. 6, 2021, 11:31 p.m.

    Hi Joerg,

    thanks for checking. Seems to be there is an update necessary ;)

    I tried some of your improvements. I typed in: SELECT writefile(‘key.sq’, tpk) FROM keys WHERE primary_key = ‘’ and secret = 1;
    Got the message: Error: no such table: keys

    -> So I think the "and" at the end is better. But still have the issues with selecting the keys.
    Hopefully we will clarify this soon ;). I know we are close to the solution;)

    Thanks again.

    Marc

  • Sept. 7, 2021, 7:12 a.m.

    Well, the keys table is in the keys.db database, see here. Of course primary_key = ‘’ isn't right, you need to insert the fingerprint of a key
    .keys.png

    keys.png

    PNG, 17.5 KB, uploaded by joerg on Sept. 7, 2021.

  • Members 11 posts
    Sept. 10, 2021, 6:38 p.m.

    Hey Joerg,

    I did, I entered the fingerprint of the key.

    SELECT writefile(‘key.sq’, tpk) FROM keys WHERE primary_key = ‘2UF9 2F4G G664 3456 WV78  8643 VLTT H890 7KJH 899H’ and secret = 1;
    Still the same outcome: Error: no such table: keys

    Fingerprint is 100% correct.

    It gets a little frustrating here.

    -> Can you please write me the correct command to export all private keys at once (to import them into GPGtool later on) ?

    When I think about it, I ask myself whether it is possible to write a command in the terminal (sqlite3) and get 10 data files to download? Only text is displayed in terminal?

    Basically I need it like you showed me before. Select the TPK (blob). Then save as a binary file (diskette symbol) etc. And load it up in GPGtool.

    Just as a function in sqlite3 that provides me with all private keys for downloading at once (or outputs 10 files) so that I can integrate them into GPGtool later.

    Thx.

    P.S.: I also sent you a private message concerning another topic. Have you seen it? I would be glad. Thx!

  • Sept. 12, 2021, 6:19 a.m.

    Hi there,

    well, I don't know what's going in. If you get "Error: no such table: keys" then the DB file you've selected doesn't have a table called keys. The keys.db file should have that table. Of course you could try a simpler command, like select primary_key from keys. That would give the same error.
    Another comment I'd like to make is that the primary_key ID is stored without spaces, so WHERE primary_key = ‘2UF9 2F4G G664 3456 WV78 8643 VLTT H890 7KJH 899H’ will not select anything, but you don't even get there given the error you get.

    Since the command line doesn't appear to work for you, why don't you use the UI tool? Available on all platforms: sqlitebrowser.org/

    Re. the PS: I got a message, but since I wasn't logged in, the system didn't open it :-( - Now I see it.

  • Members 11 posts
    Sept. 12, 2021, 11:52 a.m.

    Hey Joerg,

    I don't know what is going on either.

    I basically copied sqlite3 (unix file) and keys.db in the same folder. Started sqlite3 and run the command.
    Or is this maybe because I use "Homebrew" to be able to run sqlite3 on my Mac (code is different)?

    Anyway I used sqlitebrowser.org before.

    My general aim is: To export all private keys with one command!

    Is there a ways of doing so by using sqlitebrowser.org (instead of selecting each key manually, BLOB file, export as binary,...)

    Many thanks again!

    Marc

  • Sept. 12, 2021, 6:29 p.m.

    Yes, see my earlier post: https://pep.community/t/thunderbird-issues/61/post/366/.

  • Members 11 posts
    Sept. 14, 2021, 7:10 p.m.

    Hi SVA,

    I sent you a personell message.

    Do not know if you have seen it. Once Joerg did not see it either, because he was not logged in or so.

    Thanks

    Marc