PGP Mail

don_quijote's Avatar

don_quijote

30 Nov, 2011 08:02 PM

Hello
my problem is:
I have install everything right. But when i want to encyrpt a mail in OS X MAIL, the both simbols are grey and i could klick any thing.
what is my problem?

  1. 1 Posted by Alex on 30 Nov, 2011 09:23 PM

    Alex's Avatar

    Hi there,

    thank you for your feedback. Have you already had a look at the chapter "Your first encrypted mail" at
    http://support.gpgtools.org/kb/faq/first-steps-where-do-i-start-whe...? It says: "It is important to understand that you can only encrypt to someone of whom you have the public key in your keychain. The mail address you write to have to match the mail address associated with the according public key".

    Does this help?

    Best regards, Alex

  2. 2 Posted by don_quijote on 30 Nov, 2011 09:32 PM

    don_quijote's Avatar

    hello

    No this is not the problem. My key are all correct.
    When i try it in Thunderbird, it all works finde.

    I forgot something in my right up corner there is no green open pgp symbol, there is nothing

  3. 3 Posted by Alex on 30 Nov, 2011 09:48 PM

    Alex's Avatar

    Mh, how have you installed GPGMail? Is there a GPGMail preference pane within Mail.app?

  4. 4 Posted by don_quijote on 30 Nov, 2011 10:36 PM

    don_quijote's Avatar

    with ne GPGTools installer from your website.
    But i hade a old version also on my mac

    Of course there is a prefence pane in my mail app. (it is really short in the new version for lion)

  5. 5 Posted by Alex on 01 Dec, 2011 09:25 AM

    Alex's Avatar

    Could you please double check that the mail address you're using in Mail.app equals the mail address you are using in your OpenPGP key?

  6. 6 Posted by don_quijote on 01 Dec, 2011 03:33 PM

    don_quijote's Avatar

    checked and its the same

  7. 7 Posted by Alex on 01 Dec, 2011 04:39 PM

    Alex's Avatar

    Ok then. Please have a look at http://support.gpgtools.org/kb/faq/how-can-i-generate-debugging-inf... - there you can find information on how to create some debugging information. I propose:

    1. Start Mail.app and have a look at Console.app whether you find useful information there.

    2. Send us your "General GPGTools System Diagnostics" (you may want to anonymize the information first). Maybe we find a cause there...

    Best regards, Alex

  8. 8 Posted by don_quijote on 02 Dec, 2011 08:42 PM

    don_quijote's Avatar

    ok my console.app writes this when i open mail.app:

    02.12.11 21:35:26,659 [0x0-0x5e65e6].com.apple.mail: objc[10965]: Class FlippedView is implemented in both /Applications/Mail.app/Contents/MacOS/Mail and /Users/n_w_o/Library/Mail/Bundles/GPGMail.mailbundle/Contents/MacOS/GPGMail. One of the two will be used. Which one is undefined.
    02.12.11 21:35:26,688 Mail: GPG_PATH: /usr/local/bin/gpg2
    02.12.11 21:35:27,442 Mail: Loaded GPGMail 2.0a4

    when i run the commands (from you website $ curl -OL http://github.com/GPGTools/GPGTools_Core/raw/master/scripts/debugGP...
    $ LANG=C sh debugGPGTools.sh)

    it only says:
    -bash: $: command not found

    :/

  9. 9 Posted by Alex on 03 Dec, 2011 08:52 PM

    Alex's Avatar

    Please:

    1. Open Terminal.app
    2. Type (without the quotes or new lines): "curl -OL http://github.com/GPGTools/GPGTools_Core/raw/master/scripts/debugGPGTools.sh"
    3. Type (without the quotes or new lines): "LANG=C sh debugGPGTools.sh"

    Hope this helps.

  10. 10 Posted by don_quijote on 04 Dec, 2011 12:47 PM

    don_quijote's Avatar

    ok, i hipe this is the right file.
    bash.log

  11. 11 Posted by don_quijote on 04 Dec, 2011 12:48 PM

    don_quijote's Avatar
    *** Applications...
      * GKA: 1
      * GPGServices in /: 1
      * GPGServices in ~: 0
      * MacGPG1: 0
      * MacGPG2: 1
      * GPGMail in /: 0
      * GPGMail in ~: 1
      * GPGPref in /: 0
      * GPGPref in ~: 1
    ** MacGPG agent...
      * MacGPGAgent in /: 1
      * MacGPGAgent in ~: 0
      * MacGPGAgent has a socket: 0
      * MacGPGAgent in launchd: 1
      * MacGPGAgent running: 0
      * Path to agent: /usr/local/bin/gpg-agent
      * Is agent running (directly): gpg-agent: Der gpg-agent läuft nicht für diese Session
      * Version of agent: gpg-agent (GnuPG/MacGPG2) 2.0.17
      * Version of agent (directly): gpg-agent (GnuPG/MacGPG2) 2.0.17
    *** Permissions...
     * LS: drwxr-xr-x  3 root  admin  102 13 Nov 13:25 /Library/Services/
     * LSG: drwxr-xr-x  3 root  admin  102 10 Nov 00:34 /Library/Services/GPGServices.service
     * HLS: drwxr-xr-x  3 n_w_o  staff  102 27 Okt 14:31 /Users/n_w_o/Library/Services/
     * HLSG: ls: /Users/n_w_o/Library/Services/GPGServices.service: No such file or directory
     * UL: drwxr-xr-x@ 10 root  wheel  340 13 Nov 13:04 /usr/local/
     * UL1: ls: /usr/local/MacGPG1: No such file or directory
     * UL2: drwxr-xr-x  11 501  admin  374 10 Nov 00:34 /usr/local/MacGPG2
     * LMB: ls: /Library/Mail/Bundles: No such file or directory
     * HLMB: drwxr-xr-x  3 n_w_o  staff  102 13 Nov 13:25 /Users/n_w_o/Library/Mail/Bundles
     * LMBG: ls: /Library/Mail/Bundles/GPGMail.mailbundle: No such file or directory
     * HLMBG: drwxr-xr-x@ 4 n_w_o  admin  136  4 Sep 12:10 /Users/n_w_o/Library/Mail/Bundles/GPGMail.mailbundle
     * HG: drwxr-xr-x  10 n_w_o  staff  340 13 Nov 13:25 /Users/n_w_o/.gnupg
     * HGS: ls: /Users/n_w_o/.gnupg/S.gpg-agent: No such file or directory
    *** Setup...
      * Default key: 254AF617134209BD5896D193CEBC401B0D536AFB
    *** Showing installed binaries...
      * GPG1: -rwxr-xr-x  1 n_w_o  501  4544960  8 Mär  2007 /usr/local/bin/gpg
      * GPG2: lrwxr-xr-x  1 root  wheel  27 13 Nov 13:25 /usr/local/bin/gpg2 -> /usr/local/MacGPG2/bin/gpg2
    *** Testing configuration...
      * Config check: 0
    *** The secret keys:
      * GPG1: sec   3072R/2DB8849D 2011-11-13
      * GPG2: sec   3072R/2DB8849D 2011-11-13
    *** Testing encryption (1/2)...
      * GPG1:
    gpg: 254AF617134209BD5896D193CEBC401B0D536AFB: übersprungen: Öffentlicher Schlüssel nicht gefunden
    gpg: [stdin]: encryption failed: Öffentlicher Schlüssel nicht gefunden
    gpg: processing message failed: eof
      * GPG2:
    gpg: 254AF617134209BD5896D193CEBC401B0D536AFB: übersprungen: Kein öffentlicher Schlüssel
    gpg: [stdin]: encryption failed: Kein öffentlicher Schlüssel
    gpg: processing message failed: Unbekannter Systemfehler
    *** Testing encryption (2/2)...
      * GPG1:
    gpg: Keine gültigen Adressaten
    gpg: [stdin]: encryption failed: Keine solche User-ID
    gpg: processing message failed: eof
    *** Bundle configuration...
      * Bundles enabled: 1
      * Bundles compatibility: 3
    *** More about the configuration...
    default-key 254AF617134209BD5896D193CEBC401B0D536AFB
    
  12. 12 Posted by Alex on 04 Dec, 2011 02:33 PM

    Alex's Avatar

    Thanks. I see three possible issue:

    1. You've an old GPG1 installation on your machine (from 2007). Maybe you should rename the file /usr/local/bin/gpg

    2. In your config file ($HOME/.gnupg/gpg.conf) there is the line "default-key 254AF617134209BD5896D193CEBC401B0D536AFB" but you don't have such a key. Your private key has another ID. You should remove this line.

    3. Your "gpg-agent" isn't running. Not sure currently why not.

  13. 13 Posted by don_quijote on 04 Dec, 2011 02:43 PM

    don_quijote's Avatar

    what do you mean with "rename the file"
    what exactly must i do?
    (sorry im not a expert in this)

    thx

  14. Support Staff 14 Posted by Luke Le on 05 Dec, 2011 09:07 AM

    Luke Le's Avatar

    Hi don,

    in order to rename the file best use Terminal.app and type the following command and confirm with pressing the enter key:

    sudo mv /usr/local/bin/gpg /usr/local/bin/gpg.old

    It will ask you for your users password. Enter it and press the enter key again.

    After that, restart Mail.app and try again.

    Hope that helps

  15. 15 Posted by don_quijote on 08 Dec, 2011 05:30 PM

    don_quijote's Avatar

    hello

    i've done the terminal command. still the same problem.

    alex, you wrote: "In your config file ($HOME/.gnupg/gpg.conf) there is the line "default-key 254AF617134209BD5896D193CEBC401B0D536AFB" but you don't have such a key. Your private key has another ID. You should remove this line."

    how can i do this?

    at all:
    maybe a full deinstall an reinstall could work?

  16. 16 Posted by Alex on 09 Dec, 2011 08:52 AM

    Alex's Avatar

    how can i do this?

    Start Terminal.app and write (without the quotes): "open -e $HOME/.gnupg/gpg.conf". Then delete the above mentioned line and save the file (Menu > File > Save).

  17. 17 Posted by don_quijote on 09 Dec, 2011 04:09 PM

    don_quijote's Avatar

    Hello

    I've done both commands successfully.
    Still the same issue.
    And a new one. When i wanna start die GPGKeyring. it shows me this error:
    "GPG config error" ...there is problem with you config file. please contact GPGTool team"

    So here i am.
    what now?

  18. Support Staff 18 Posted by Steve on 09 Dec, 2011 04:25 PM

    Steve's Avatar

    Hey Don,

    don't give up. We'll get this sorted.

    Could you attach the gpg.conf file?

    • Open Finder window
    • shift + cmd + G
    • ~/.gnupg/gpg.conf

    Attach the file here.

    Now please make a backup of that file

    After that, could you try deleting that file manually? Then please restart mail and see how it goes.

  19. 19 Posted by don_quijote on 09 Dec, 2011 04:33 PM

    don_quijote's Avatar

    ok,
    here the file

    now keyring works again.
    but still nothing works in mail

  20. Support Staff 20 Posted by Luke Le on 09 Dec, 2011 04:38 PM

    Luke Le's Avatar

    Any chance you speak german don?
    Could you try the following version of GPGMail and let us know if it still doesn't work?

    http://cl.ly/1F1d1e231N1I0X2F1r10

  21. 21 Posted by don_quijote on 09 Dec, 2011 04:44 PM

    don_quijote's Avatar

    yes i speak german/ ja ich spreche deutsch

    hm would should i do with the file? when i open the zip file, there is the bundle file, and when i click it i starts terminal with this line:

    Last login: Fri Dec 9 17:40:50 on ttys000
    donny-jonnys-MacBook-Pro:~ n_w_o$

    should t drag the file in a certain direction?
    or just doubel click?

    (i've done this, same issue)

  22. Support Staff 22 Posted by Luke Le on 09 Dec, 2011 04:46 PM

    Luke Le's Avatar

    Hallo don.

    Sorry, die Anleitung hab ich vergessen.
    Das .mailbundle file musst du nach UserVerzeichnis/Library/Mail/Bundles kopieren und das bestehende damit ersetzen.

    Daraufhin einfach Mail.app restarten und versuchen ob es nun funktioniert.
    Was genau schlägt fehl in Mail.app?

  23. 23 Posted by don_quijote on 09 Dec, 2011 05:00 PM

    don_quijote's Avatar

    hallo luke

    hab ich gemacht und immer noch das gleiche problem.
    Wie ich ganz oben geschrieben hab, kann ich keine mails verschlüsseln.
    die beiden gpg buttons ganz rechts bei einer neunen mail bleiben grau und ich kann nichts anklicken.
    außerdem dem fehlt oben recht, das grüßne open pgp feld komplett.
    (entschlüsseln kann ich im übrigen auch nicht)

    im Schlüßelbund is aber soweit alles ok

  24. Support Staff 24 Posted by Luke Le on 09 Dec, 2011 05:07 PM

    Luke Le's Avatar

    Also die definitiv schnellste methode wäre, wenn wir eine Screesharing-Session starten würde.
    Dann könnte ich mir via Terminal mal deine GPG Einstellungen anschauen und das ganze wahrsch. schneller debuggen.

    Würdest du dich auf sowas einlassen? Würds über Team Viewer machen.

  25. Support Staff 25 Posted by Luke Le on 09 Dec, 2011 06:12 PM

    Luke Le's Avatar

    Freut mich, dass wir das Problem nun doch noch lösen konnten.
    Sollten andre auftreten, einfach wieder eine neue Discussion eröffnen.
    Du kannst ohne weiteres auch auf Deutsch posten, da es die Muttersprache unseres Core/Support Teams ist.

  26. Luke Le closed this discussion on 09 Dec, 2011 06:12 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac