Closed Bug 1670171 Opened 5 years ago Closed 5 years ago

getting an error saying the message has been encrypted by an obsolete method

Categories

(MailNews Core :: Security: OpenPGP, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: it_support, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36

Steps to reproduce:

I have sent to myself a PGP-encrypted email without signature, like this one:

....

....

Content-Type: multipart/alternative;
boundary="000_VI1P194MB063950F8AFCFEF8AE12E5510A13C0VI1P194MB0639EURP"
....
....

--000_VI1P194MB063950F8AFCFEF8AE12E5510A13C0VI1P194MB0639EURP
Content-Type: application/pgp
BEGIN PGP MESSAGE-----

Version: BCPG C# v1.6.1.0

hQIMA3drgilSCIWPAQ/9Hu9QPY3oTma4xDs7HR6/rcAASC+avaxbUlw/LUx2mHaj
TcyxpTQz7xFoegvz/lv7P7uKxgcEVsG+splamkT20IwG0wUifsCCSJLjtnSh9QH5
uxj0nkas5BgIWT47YycL8gRxQfAkMmXWuYS9tO3QZi6gIn9/lgj/npclZhSnZZzJ
BVJWwBPPUBc7EKkgJW0bAbtZbyrs5n0CEvqbWx6w6Yjp/xf0naB0oT1oROQB053s
iIFkXdhhdDI56zNIETeh/RuLVMJ0tqmEAYnzX7oX5+30d4ZA8Du0rU2ygwfHtvhd
AgbmT6Zglp+kFmLt5Uq/MyovnJfk6e5dHqNZ03O7YsoMaBoeJ3/3R6pCH4Yr+S2R
SJtRIuVoDRcMZYjE56dqVCrCPCxHFNP0EzIZS6oOd6PSIeA67nZVCiBOdEEdGes/
8RY5/OsI8iGezaEDgxljEDFSkw96ujf4GZxZ5OXhxPKF0oyY2bQnQz+WzjocXvHR
R6iMk3G1nAK20EwURKnFkWI0IJiUb0JJbrnVbhuOx15QHs+DLuUj/WjWj37HWqa3
ckeQOYcV7E2snCNucgmbmfmxmHAmZM1HK5ZRcHWThK++F0gAv5GXUD4HiiaarxTc
A8YR7RwdIf1wnIb3+yoA0sxDXIV+mcyT38U10nj5PDjvdCwUar5spOXvpiU2TPfJ
Jwlu+mjBBsRHPcAP/Oq/kqTXtvowcJxGvz16MlfO/PWofOEIhUz1Dg==
=d10C
END PGP MESSAGE-----

--000_VI1P194MB063950F8AFCFEF8AE12E5510A13C0VI1P194MB0639EURP--

Actual results:

I am encrypting incoming emails with PGP on mail server, since the senders are not encrypting them and i do not want to keep them in clear.
I am using my own PGP keys to encrypt the emails.

I have not the possibility to sign them because i can only have the public keys available on server, lest an intruder steals the private keys from server.
(On client side though, i have both the public keys and private keys necessary to do the decryption)

So when i download the emails with Thunderbird , they are PGP encrypted but not signed.

When i open these emails with Thunderbird, i get an error saying the message has been encrypted by an obsolete method, and may have been modified during transmission, so it will not be displayed.

I guess the problem is missing signature?
Is there a way to tell Thunderbird to ignore the missing signature and decrypt the message anyway?
Or may the problem be the "application/pgp" mime type i am using, which is obsolete?
I may try with
Content-Type: multipart/encrypted; protocol="application/pgp-encrypted";
but i guess it makes no difference if the problem is in the missing signature

Expected results:

Is there a way to tell Thunderbird to ignore the missing signature and decrypt the message anyway?

Or maybe i can write a Thunderbird add-on to sign the PGP messages on client (recipient) side upon receiving them, since i have the private keys on client.
Would it solve the issue?

I doubt the missing signature is a problem. What is the exact message, and what are the properties of the key you're using. Is it perhaps using an outdated algorithm?

Component: Security → Security: OpenPGP
Product: Thunderbird → MailNews Core
Summary: [Thunderbird] Obsolete PGP encryption method → getting an error saying the message has been encrypted by an obsolete method

Algo is RSA 4096 bits, no expiry.
Maybe i will try with an ECC key , if RSA is obsolete.

Exact error message: see this screenshot https://i.imgur.com/O17RjrO.png

Procedure i have followed for encrypting the mail body in PGP:
i have pasted the public key and the mail body on this online tool https://www.igolder.com/pgp/encryption/

The public key is:

-----BEGIN PGP PUBLIC KEY BLOCK-----

xsFNBF96pyMBEACzy72vOM75vORUgK9bijmOOJJSrgPZy2BT8yhSMyU4dYCgkPjdQYYx/4Cxf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CQGp/nFSmXS+wz37HTTjwlp6R9wKzU/LauwF9le3j
jsWgCPV/8wOAMFqgl6Nb/SgvcTsTzI5qABs13QeRABEBAAHCwXYEGAEIACAWIQRuaxxGsFZtEJLP
zTt3a4IpUgiFjwUCX3qnQQIbDAAKCRB3a4IpUgiFj8ZuD/9cLllKJ4ncQH5OkyKoGA/MCuMZ0wt7
INUeoL23Dxd9gZSPfXIPt4O0MrdEhG2iuT6zBcaJ4E5M2TgWShd3rVVHweVe7B+cpr5pqWWqcrwc
rJZ9Y1lrUA4N4L5oItKSd402ZfXPBalmjp5hdGwAR64nhTVyN8OSrKt6x4gWrKIYYUFAmud0xQpU
DH4WPfxHGyA5KiCSJTqMJe6rt9WGmEyS6HnWsbli0d530/18CgGSc/bCNy6t/Mq2kpPhly45tOwF
A145iHRr2psn3hNYaZ8TABLDx4/NAX5fDZNW5jRsEEIkvSqtTJ+xGi7y4voq/NTL13y+c5tCnD2O
0tAKJSgZLoDbpiS53KNQz6gfxzzjD0kZASX+H8Lh75J8gvGG7zJj6dvodYZ9l5M7xFbYJl55YXEh
qgARV8Ejdkrr4cr9aqTauuWfIKswZqtyF+1C9qG4qkBOfYHL/PDvpcZme8b2QjcMoLLVu6wbdUz9
+42EzPee8gWYRCMczk99f3g8RsQWUnbRz6JvLvOQWmHp7Q33An/MmsgOXlaIdWx8n6zuXlKAEblS
i2P5dFA7YyE7zXeMdB3bdb5sGVunTCG6VHOXAkVr+/0srmqXvryxmDAiKGLhpmmrbCRz2RXHaUNC
7+FAMl9WyjSdHLnHh+nx9IqeQzo21sxS2WvzKEP7y8pJDw==
=HdGi
-----END PGP PUBLIC KEY BLOCK-----

I have tried sending an encrypted email to myself with Thunderbird and it works, but it is using different mail headers than i did, so i will try encrypting the emails with the same approach

...
...
Autocrypt: ...
...
...
Content-Type: multipart/encrypted;
protocol="application/pgp-encrypted";
boundary="8GUwmlLrQqoW2EvDFU0SRTjNVvfiwpNfX"

This is an OpenPGP/MIME encrypted message (RFC 4880 and 3156)
--8GUwmlLrQqoW2EvDFU0SRTjNVvfiwpNfX
Content-Type: application/pgp-encrypted
Content-Description: PGP/MIME version identification

Version: 1

--8GUwmlLrQqoW2EvDFU0SRTjNVvfiwpNfX
Content-Type: application/octet-stream; name="encrypted.asc"
Content-Description: OpenPGP encrypted message
Content-Disposition: inline; filename="encrypted.asc"

-----BEGIN PGP MESSAGE-----

wcFMA2SPT9OiioznAQ/8DvZVhFnzgIjDHB+cT+gU7q7NCjmEJB7EDu4Ahzh2J5M22c6/fJED6rFX
...
...

Also, i will use GnuPG to encrypt things instead of external tools, since i don't know what libraries they use.
Maybe that was the issue

UPDATE: everything works fine for text/plain mail bodies with no attachment.
I have tried adding an encrypted pdf , but Thunderbird ignores it.
What am i missing?

Here is the complete mail source: https://1drv.ms/t/s!Ao4pRXNsgcpfowpfKlgBrTz8sP-0?e=URMwQ8

Thanks

I mean, it shows me just the mail body, but not the attachment

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → WORKSFORME

Solved: i had to encrypt the mail body + attachments (and headers) all together in the same PGP message

Is there any other way?

You need to log in before you can comment on or make changes to this bug.