Am 16.03.26 um 21:35 schrieb Adam Sjøgren:
Gottfried writes:

Cool - how is that done? I didn't know that was possible :-)

Emacs/tools/Encryption-Decryption/many options  in the menu-bar on top

Sweet, I never noticed that - I guess the only problem for your use
case is that it only allows exporting the public key.

I have got older keys in Thunderbird, which I wanted to export. Not
GnuPG keys, but keys I created in Thunderbird.

Ok, and you have found out how to do that in Thunderbird, right?

   Tools → OpenPGP Key Manager

and then:

   File → Export Public Key(s) To File
   File → Backup Secret Key(s) To File

Then you can import the two files you saved the keys to with "gpg
--import FILE.asc".

... and Bob's your uncle.

I don´t know who is Bob?

[...]

What did you put in ~/testkey.gpg?

I encrypted a mail in Gnus and saved it into a file.
and tried to decrypt it.

Good, then the problem is just that the encrypted email was only
encrypted for the recipient secret key, which (in general) you do not
have in Gnus and gpg.

So you'll want to encrypt your outgoing emails, so they can be
decrypted by the recipient _and_ by yourself. That's what this next
part is about:

that's done in the gpg configuration with the 'default-recipient' and
'hidden-encrypt-to' options. Have you configured those?

this is missing, I have not configured that, because I don´t know how.

Time to read some more documentation, then! Much easier now you know
what options to read about.

I found in "man gpg" those two options:
"default-recipient" and
"hidden-encrypt-to"

Super!

Did you find out what value to set them to?
no


but after many attempts I gave up.

What did you try? The easiest way to get help is if you follow this
format:

   - I thought I needed to do [.........]
   - When I did that, [..........] happened.
   - I expected [...........] to have happened instead.


When you give that information, people have a chance to understand
what went wrong, and help you.

You are right, I have to be more precise.

this is what I did:

gfp@Tuxedo ~$ gpg --default-recipient [email protected] (my email address)
gpg: WARNING:  There is no command given/Kein Kommando angegeben.
try to guess what is meant/Versuche zu raten was gemeint ist ...
gpg: enter your commands/Auf geht's - Botschaft eintippen ...

a command is expected, which I don´t know...

the same here:

gfp@Tuxedo ~$ gpg --hidden-encrypt-to [email protected]
gpg: WARNING: Kein Kommando angegeben. Versuche zu raten was gemeint ist ...
gpg: Auf geht's - Botschaft eintippen ...


When you say "I tried many times and it didn't work", I have no idea
what to say to help you.

I don't know how to use them in the terminal.
my knowledge about the terminal is too little.

You set those two parameters in the configuration file for gpg, which
is ~/.gnupg/gpg.conf

I don´t have a gpg.conf file in my  ~/.gnupg/

There is no arcane terminal knowledge required this time, you just
need to know how to edit a configuration file!


   Good luck,

     Adam

thanks

Gottfried

Attachment: OpenPGP_0xAC95367953582A3C.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to