Meddington / OutlookPrivacyPlugin

A PGP encryption plugin for Outlook 2010, 2013 and 2016.
BSD 3-Clause "New" or "Revised" License
272 stars 60 forks source link

key attached with "attach key" not usable for recipients (OpenPGP) #98

Closed mpetr closed 8 years ago

mpetr commented 9 years ago

Windows 8 + Outlook 2010 + Outlook Privacy Plugin 49.

"attach key" adds this format of public_key.asc:

-----BEGIN PGP MESSAGE-----
Version: BCPG C# v1.8.5688.32321

uQENBFXLXfMBCADUR5eC4F7NpBk45VjDg7+J/ssHneuujZb8v0CP3O9u/v8HqP1p
rNSZJHkNuBDHh5avAbLfhfCCeh5fq/rDbJWRSSOy8rXmp1MhyhKtI3TMwm2OVgnu
c2q8GanlYn0VrteRU1jbFee+wJ0ZaLuGsqzA2FWVy4PP8B1tynpkmNTneK/c3x26
gyEvaReKh7FqlRUdithG8q260u5gZO/Djbx7WntrnqLTtkzpyBPGJMWnz/36gPqa
0KixDg95mmXPfdIT6iFPPyXRkiwsLvWQKo+PuwVXfKHkWuaGuMfv/JwL2zdfcZ6f
uza0Bul95Ebaxl+qjUhtH/tk5lA+pWpqNZX9ABEBAAGJAR8EGAEIAAkFAlXLXfMC
GwwACgkQxsWG9QJC/3irGwf8D5xhDeCrwv4vztmVqW5T6ZqueOMthO/01raueSoy
5svDqRcsyIoaGFfMy5Uw+Yo0Ipmwl5gziQ7m1GvrurvOaWSFIfYXpHXcVnc6xm1r
LRYj1UzmZnXJtG+VIxwoM6SJ7XWQ44R3MNgPf4JhhGl11w/om4e8JAoX0PZ+ZvAE
vFxFhq1rGfgzncqfH1gxukjkPFI1z7xX4HHFRvZaB7uhxQCR32sRPwTV0D0v7D3v
JfQVM8OPNB8bACMZpTE9Rf8hgqTrW9N4rmwPN+ZtrdLXKqryJWbJEBJlSad3UX8K
2yLLRhLLLTEgeTaAkx61yocHxgwCh9mGGtXAS6vEzp0tw7ACAAM=
=hm2I
-----END PGP MESSAGE-----

It is not possible to load this key into Kleopatra or GPG (command line error is something like "no valid data in OpenPGP format). If I try to upload the key here, it is not processed due to errors too:

BUT, when used Kleopatra (GPG) to export the public key, I got

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2

mQENBFXLUoMBCAC3JV4RhNCazNpfcEg/bRrDIjoEJDO+ae7tIRhooYlPWNH9vq1w
Gz3YayMJvHlVRe8/7+etYBc6tDSrVdC+9lCiNKNvjd9q486i9nfLj30/MOwh21uJ
7nN9I0DHgVFVCqna18p8vjfO3tsXUS450baydhkgICWj6YM7+knZ02hc2OantuCu
4/w9ooyLHEwPfBB4s88CeXS3P90oqvUp86I2UB/gCSIs4jZpxvv3LJDEeqPf3k/Y
R6FWtPwhWUhyWBxuMADekg9722+kuHaXewVciNSDHvf9UMRi6jHEHYpcDrkhnRVh
zrZz7KjWa3tZFfmGFD078tM+84VLCDatT2RpABEBAAG0MFBldHIgQmFydG9zICh0
ZXN0KSA8cGV0ci5iYXJ0b3NAY2xvdmVrdnRpc25pLmN6PokBOQQTAQgAIwUCVctS
gwIbAwcLCQgHAwIBBhUIAgkKCwQWAgMBAh4BAheAAAoJEL4P8K1OhN5VGywH/07J
SX1+R6/jZw2BnfMGY28TIOB+2qx7Zzb21X29m7+K6CaCdVBaatJTuFOeeYLGX9x4
ia9gn2aJUo2WYtud1EmKpIa7+bv7u6jsanY75DeOskh81NAE26nScXci2pBOzP0o
L0euao1/aOqjIaeSyqoTwGzfGJPfHegHlkmrvvMFnXo3t2pEt3xVUB/3Cn5Zti0k
l1RJ38l8SJdtvsRdSxlvqnIRGC59OLvuWwZ8BZYbznzYQ3DzklkH7yhojoewJje1
mH3acT3CJIuZ927r39eL+knLOx88yRuq2kAFtOoraraseupcoFwFLqBKsq9Pg8Z7
NRGQNrjfCFwZ3XzExRm5AQ0EVctSgwEIAOWBg/ujAI91AW64LJFfWCqCNJNhgQqS
59t8Va9vS5Cl3VlQ5pzstNYocYkrWY/avTkH2FIR9+lMvtcYPxnc6Z3wd/70xMpi
t705oOw/csrEr8LJJj/jzqoUJNvq3leOWPYJlT8SEWcM0rDEB5tQNdVFlRYUp8kZ
gJ96u5AWgJlTv0uhF0v0IsBy9Q72n3A/JZHPaYcDKeCTsfuHQp6+Nl0QGxEAkeHY
KZEWRJDUh+vEiPpsoj00VuC1YzCAOkuMoG/al0i/2WqSrsEGrUkiwQlLweCsmgHf
QfxX4G2ECljT80LKBsP3JEjMzJvypIf9g7XkCfAxYE79utT0e+xoPW8AEQEAAYkB
HwQYAQgACQUCVctSgwIbDAAKCRC+D/CtToTeVQtoB/9YiD0mHA3QHRV2fmoiralr
mwR8rYJKvkueIlp8WyyNd4wXenKxznsYhfAiRMnpWdmw/10xMD73LndJj9H7zmKG
qBTsDfNHNeaTVMbDiGTkk7XhRMroi/NvnqrdIYJJsHVnC6ldcx26VyVE9MoGzSnD
BaKOJw9Fe3wsQv8b14D24TZSSt5/OvCu0+/8TfPwCD4Quxuxr2MYXPkbXAhUHKE5
TTyC8DvdTiWW4YesVIQuk1VZaq/1ZIXvld/FecHMrlDA8ebCXuYhnKNvUxeWpDrF
8QuINoxdiPqOiIlZ7h/IXHzEObda6ZfjjClJb9mbXaBfBCikR8mQhAdHjuvicP4S
=2t/P
-----END PGP PUBLIC KEY BLOCK-----

and this is valid, importable with OpenPGP and works with all above websites.

Any idea how to make "attach key" working too?

Krnlsoft commented 9 years ago

Confirmed, i have the same issue.

stef commented 9 years ago

confirmed here as well

YHSC commented 9 years ago

Same

Dandyx commented 8 years ago

Same here.

Meddington commented 8 years ago

This is working fine for me with beta 49. Key imports correctly, has correct headers, etc. If the message is also marked for encryption, the public key will be encrypted along with the message.

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: BCPG C# v1.8.5756.22831

mQINBFVL2kQBEAC/001UaBbq6eziPLW+L7wxDTxjf+xJERBwcBYL529+J8vfjfW4
vUoPSzN/dmTIMBroPWvH7vswBihZesGuz1iBbGVLWCQkqNh4jqXx4IjCUu0EYhSh
DcpRRikdaU/yoMP1msbo8rXT65LoBOItlHuqSkmT/yC3aVhr1b/7YQdO9wz3Dxs6
  [snip]
VH+/hxC/udKLJ+gEPII5xhBk9iNlFmtHrVnV0BMAb9vv3jus+RHI0qeSXgvIzLEn
vpjpICcEm/Z4gKeqEqmjTHKqJa3kKKtl8RdohiOftK04GXzOnbHvhUhe2hawAgAD
=7qRE
-----END PGP PUBLIC KEY BLOCK-----
stef commented 8 years ago

it does not work with beta 49 here, i think closing this issue is a bit premature.

Dandyx commented 8 years ago

Same here. Not solved. "Attach Key" button produces a "public_key.asc" file attachment that is not my pub-key. Tried it before and after a clean install of my Win7 System incl. all plugins. Still not working. Produces highly confused recipients thanks to that "fake" attached key (which once opened is not even a key at all - as described above by @mpetr )

Any advice by @Meddington for the rest of us?

Meddington commented 8 years ago

Okay, I took another shot at correctly exporting keys. Check out BETA 51.

Meddington commented 8 years ago

@stef , @Dandyx -- Please let me know if this resolves the issue for you