This appears to be something broken in my gpg setup.
I can demonstrate the same behavior with gpg2 and gpg. Here's an
example using gpg.
I can encrypt something using my secret key, and list my secret key, but
not decrypt something sent to me using my secret key. Some examples:
pjs11@R0225632 ~ $ gpg -K
/Users/pjs11/.gnupg/secring.gpg
-------------------------------
sec 1024D/0F2E06CC 2000-10-20
uid Patrick Spinler <
spinler.patrick@mayo...>
uid Patrick Spinler <
pspinler@gmai...>
ssb 2048g/3673D7D5 2000-10-20
==== Example of encrypting using a friends public key ===
pjs11@R0225632 ~ $ gpg -e -r
jbroome@gmai... -a -s
You need a passphrase to unlock the secret key for
user: "Patrick Spinler <
spinler.patrick@mayo...>"
1024-bit DSA key, ID 0F2E06CC, created 2000-10-20
gpg: EA927CD8: There is no assurance this key belongs to the named user
pub 1024g/EA927CD8 2003-12-07 John Broome <
jbroome@gmai...>
Primary key fingerprint: F732 72ED A7CC FA67 6A00 B2F6 947D 7436 C01B 27B1
Subkey fingerprint: C69A 98A4 925C 2915 FDD2 4F37 8A8C 00BE EA92 7CD8
It is NOT certain that the key belongs to the person named
in the user ID. If you *really* know what you are doing,
you may answer the next question with yes.
Use this key anyway? (y/N) y
testing testing test test test foo.
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.12 (Darwin)
hQEOA4qMAL7qknzYEAQAgvUJgQzNaVfOV1THS64E0pUb6BDeitvQg1dC3eZP8PTB
nTFeJMtMfD+nJc1eNmcdFBfteEP6RixAUlVhJUZd+in2zj0XUQtqv1Tgtcbqyebj
+Gbpw1+z2yK5boe5d7XoAjsfsGPalkOQtRffHP48joYEpq5h3xdD2ZwEoVeSyEED
/iinJ9K/fa0daUq9uEr0+zJ3UJOF8uEro5t5HNacDDuup8KCgtwAMXdfbjM9qVnI
kl7ipHrt7OveV0LFtDw9AKZyaaCqiehPZJb+8uMAPVj6fAzM8v7pzXt44JdAbu+y
4W9WMzPWHIwBIJV55QQLhm2sKtUfKDde98fd4eaNWE1k0p8BkGtNAVOjfRSP5uSF
yIIi93rbbc5Yff1qyLKWGA/d850A5hiI2rIuEVf9pn0zVvWaR5mq1t65o/M//uPx
I4Y1NTtDxN6eXsMOIcHhIchkyeVgAGVSVC8OMwyICgzkGMP1DdPSREGU9I2PxnWR
2RUfX8LnGLAbidIPhEJYSHIGN3AsCDrJdAZqemL2Ihihl0rL7kFb7xC6nay+kRd1
H4Y=
=en+i
-----END PGP MESSAGE-----
=== Trying to decrypt a message from this same friend ===
pjs11@R0225632 ~ $ gpg -d
-----BEGIN PGP MESSAGE-----
Charset: ISO-8859-1
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org/
hQIOA2yYh1giUwRbEAf/X4det1WEG6RL23E1qtMyCJEh3ZsRaoDwNhK+dT0/RLEj
Li+vkw2SdT32GYf2Ucnn8Zm8qgeXL39gHALkn5z/sruBvQJbc+5Yb3CD+TkNc1dU
nnJ73VaTyXmMsAhA482d36TavhSEIHZktqYer/8WXOZRzr+iVSvoynNgapBQiMpW
7WQPiavsYt4Nh5YVYpJl9xKdHbW2aFksnlpStK2OIFcBwTTG/PfioI50oBVjfGnt
Jf3qlmVYy3sn1hShTgnPg5Ax4Qn/5FbNstBTJXd2eJQjST8z4ekRfOmSxe10XkSg
fXMmdjqsaNkjdED8iULePQQq90vFH+w0VaOG7bl+Ywf+KtWRiXRHqeGSo496Uwas
ZIqMZMdspZjFz47d5DclbuCln1emhvth8tds3sNmZ7p4bTTp6vjYDhJmZCFg/cAN
1Os/IHBMelt15e40+5ALIPrrJQtaklqyDNcumpAQtau9Iu22CsdLA8IWwZH3cJqV
N0vWrRmDspkzhTHL/xzrllhzN9P4fpSaByzCuHAWH3V7rTKg5/27nW6dCxuTsGCJ
AUCSnH1RLDG4ii+4Jvnp8SQStP0YmzsRKADsLdWf0hPdBiev7Q+91q/+FsIeC4KK
okfgbBBkLh3XpNJmO33H8ZutHH5Ar0O5V154QIE8TEgHA9sv5oCT1C4o716MPbqO
Q4UBDgOKjAC+6pJ82BAD/1X46I47lKiwFNN+8hZsqcj5gWZmtCjAoU7/TaJ70apt
CgRs08dnQ9EiqMz0h3ily5eIF7liX2VDz8lNrXGy7xXm/YUszdVk+uGhvhVVg2NZ
Sl+ZIH1dqI0qoYjmpn5KMwXNQALQQjuVMP2IYhTBlEegsY9aDcWY0lioX13mW7aS
BACFaTwAR5JP13yuA+bJIw8ZcVBiFTtcZ4sd4xx5aFvFBF8GXyoLjgPfathdg8zH
kMawBadABs4C4MC9ohW+nATvSp5QX+t6VztYV5yfpElmP8uSdnb1KuD4mxoUQy7D
P5rWwjTs86/NXdgqJzmugehIlr8UR7A59oPuqOkAay6VDcl6nfzyzAUPj+wee1ci
e5LOupEh7Tvq7yQZ0azZvpUtXaEHnj0ib2yjFGwcql9LDg4v06CsOl0AOV4g553d
z3rAk2zwSMxkuC0IS6s2w6SIXwZMnIeQ0xZPxAcX8sTFMd0xIbaq93L4aGve3MFE
8EopyfHQ76LGM+NZbfU=
=UMeW
-----END PGP MESSAGE-----
gpg: encrypted with 1024-bit ELG-E key, ID EA927CD8, created 2003-12-07
"John Broome <
jbroome@gmai...>"
gpg: encrypted with ELG-E key, ID 2253045B
gpg: decryption failed: secret key not available
Thoughts, please? What have I done wrong?
-- Pat
On 5/22/12 2:27 PM, Patrick Spinler wrote:
>
> When attempting to encrypt and/or sign a message, I get:
>
>
> Key 0x0F2E06CC not found or not valid. The (sub-)key might have expired.
>
> gpg command line and output:
> /opt/local/bin/gpg2
> Error opening terminal: unknown.
> gpg-agent[81149]: command get_passphrase failed: End of file
> gpg: problem with the agent: End of file
> gpg: skipped "0x0F2E06CC": Operation cancelled
> gpg: [stdin]: sign+encrypt failed: Operation cancelled
>
>
> I can, however, manually encrypt and/or sign stuff using the gpg2
> command line.
>
> This seems to happen regardless of whether or not I have a gpg-agent
> running.
>
> Suggestions, please?
>
> -- Pat
>
> _______________________________________________
> Enigmail mailing list
>
Enigmail@mozd...
>
https://www.mozdev.org/mailman/listinfo/enigmail
_______________________________________________
Enigmail mailing list
Enigmail@mozd...
https://www.mozdev.org/mailman/listinfo/enigmail
opensubscriber is not affiliated with the authors of this message nor responsible for its content.