Re: Kmail and signing

Aldo Latino <[email protected]>
Newsgroups gmane.comp.kde.users.pim
Message-ID <1778392.CQOukoFCf9@zen>
In data martedì 2 marzo 2021 20:46:42 CET, Ingo Klöcker ha scritto:
> [...]
> How did you do this? Did you set the S/MIME certificate, but not the OpenPGP
> key in your identity?

I have setup both my OpenPGP key and my S/MIME certificate. They are both 
active in my Kmail identity. Also, I have chosen S/MIME as preferred format.

> [...]
> No idea. Could be a bug or an incorrect configuration.

I could be wrong, but I think I have setup all correctly. :-)

> [...]
> IMO it's not okay, because I would never store my OpenPGP passphrase in
> KWallet. In fact, I protect my KWallet with an OpenPGP key. Of course,
> that's just my preference.

Ok, I was wrong. I thought that my passphrases were stored in KWallet... I've 
taken a look and no passphrase is stored in the KWallet. 

My KWallet too is encrypted with my OpenPGP key, and this key is stored in my 
YubiKey. After the desktop appears, I am instantly requested by Kontact to 
open the wallet and I enter the PIN that protects the YubiKey. After having 
opened the wallet (i.e., after having decrypted the wallet), Kontact/Kmail 
doesn't ask me for any passphrase. When I write an email, Kmail signs the 
email and sends it.

So, now the situation is clear:
1) the OpenPGP key is stored in the YubiKey, which is unblocked at the session 
start by entering the PIN. So, when I write an email, Kmail doesn't ask me for 
any passphrase;
2) the S/MIME certificate is not stored in the YubiKey, so the first time I use 
it in the session, Kmail asks me for the long passphrase and then Kmail (or 
another program) caches it. I should see if I can have both the OpenPGP key 
and the S/MIME certificate in my Yubikey, which is very convenient to use.

> [...]
> I don't know. What pinentry application (the thingy that asks for your
> passphrase) are you using?

I have currently three pinentry packages installed:
- pinentry-curses
- pinentry-gnome3
- pinentry-qt

I don't know why I have three packages installed.

Thanks,
Aldo

-- 
Aldo Latino
[email protected]
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE6oHZMqpIAVwWp5vjYptBwpscoPAFAmA+rRMACgkQYptBwpsc
oPDWbA//dr68DwP9DYAq9VO+TihvrXSRW4fknCadrGSQvFYlNttRfXCkRzjJfLa5
6JHv0pRHYTF/kVpl/TbEaNKN7opr2AYCSZqXnlywVa5N2KbIL9PGrOegQ4UVTRr9
TTW2qTLMbjbgGrGTkoWgj7z4clQqNBKemYK5qzrEdke3GJpAV5VJxRQM05ly4zL1
E/J1zEo0XwpEcAd3z7MfNDa4epDzDEAwTFioKCDG2PEO7uB1MvQZ5g8vVj7+Mnng
bEThzzIFP9U0XxO7eDAQI2DK3zXlDmNn4kKHI+CVNTgR2fEFpPVZW1TQFrIR7Jgx
h4hj3MnQl+EyI2C4YANBORJ+Bzd8PZwRmAmVDkPIeGNSUFzmMf9OtbYtecdIDW2J
nA/96JF7Pczh1GJkV3J4Tet4BC3A3tka8XZ3MSDfeQZzXTHR0azxnGGogcgFXI6T
57JRwM3a83MqCp5wF9rwuJvAhslDCujHjHttPrTtvQr+VSqn6f04luVVtVkQccsK
EcVFm6n/iILZBF1eVrrKZBm7Ks8bWO/rDIswYFaL56fNO7/IltACHEFU8OWu9s7l
ODqfOJgGeKncP8GsW74kMM8x2hV7Td3j22n/66ve4VsY7C0T664MaSDAEB/XPk0a
b0HWX9G3wrCo6I3i697l/c0GBL8rVYvjEmykRa70yv5u7WxjDdg=
=gQZv
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.