RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.12k stars 896 forks source link

Error handling request when trying to upload PGP key to https://pgp.mit.edu/ #1002

Open maderluc opened 8 years ago

maderluc commented 8 years ago

Hi guys,

since some time the generated PGP keys of the webmailer are not working! i alwas get thes error when i try to upload the PGP key

Error handling request Error handling request. Exception raised.

also if im generating a key with rainloop, i cant import it, something is going on. here is a key, i just created a random on to show.

here is the puplic key, try to implemet that one to rainloop or to https://pgp.mit.edu/ its not working . thanks a lot!!

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

Version: OpenPGP.js v1.2.0

Comment: http://openpgpjs.org

xsBNBFcZE00BCACpertSiekZ8emoadkCmeztP8Ln0NWemcDCNijf5iqXwWOl 5pa4W5jWbvzfzvwOW/f8Wsa1HzPUJ7WDEV/VUEe1y3t7I38bqmledB5cYeLr jLUjqkKiKOhJO6t12U7/gS6R42GRkuE8BEkK7nHkCYgOTYxAuzQE76g4Oy+I Jo0tyiJN43sx/pVXEUWt8f8IWsjXKyDQPfizJgip7vU8f8wrT0xCHbFj7i9A J1YKwM/oBOUXKcpkc2yoCrawvpLJaeWgGSusrZ7J8Z5Ac6/tMPFc2vA8wcCq WjS3OcfZVqKyOx3IVyfpNWhi1d6flOEzsyQJ/efQ9852EZJ6LO48gX2JABEB AAHNHWx1ZHdpayA8bHVkd2lnQGx1Y2t5Y2xvdWQuZGU+wsByBBABCAAmBQJX GRNNBgsJCAcDAgkQxYJ1zAoiJkEEFQgCCgMWAgECGwMCHgEAAFdfB/0b7iKy sGrTL/7sWiZ2g49t8SblElQmzkTceRJ+Zi+j996ddok4XFjHuQyMDbec4oPZ NRgoIhNFHq52XEh2yy/rgBUh9TBPEzMV5P4tTL9dFzcH6L1dpFQMSLmNyXt8 NTYsBmrQJoT2I7pwMtCzhbVnbDeo35YQ4jaFwrdOmxEPMcJ4HLyZJ590+3zr YAsryZlGn5dgT3xOBP/20j5a9ygy8yNeU1ilCH3xF2Hp8tYxCdiqTWpzwKLv p72zyBC1BDDFG+wmdSzEhgGKVoKfME1tY1+A8nVmJjcruvQk663NO0oupzdG 5Nsxh0PHamLD8zuLr7ctpnefmqpjli/9jidKzsBNBFcZE00BCACxQZBB6m2x GIuDQ4c41o29Q5kNNcT9bty/iI0E8u1CQMgNkckHP/arpOGvpQ2dtrl7DZhr 821i5025f/aMnLTZBkCUjRWSytvqQrwP3f6uwcsXgluVdNK1RAgIctleEqTs uLlChfLpKsTapD+oLaFFIwk4c73sUT0HyrGyc6XGFfl+E8eR5aw8AJ/JOs/P qVOVorbswR1fmiNZKUBFdoiMt5lbDCr5Kn8wXzpLfLzASW5BpCvhpv6/jYp3 J6YVN6uOColBhhrpSp1CMxIvWUSnD8FIpS9ahRipHR7MbsfBEwr28DknLvAs TUB5wKNsjFIzyv/7AgCeoNi3kJAN5dI3ABEBAAHCwF8EGAEIABMFAlcZE00J EMWCdcwKIiZBAhsMAADFRAf/X30kg/zc9E/q27hgVgbhSgWYIseQ/tzNiuFl ISbOmW73bS+yajXoavPE6s8WYPDJlHmYrw0rGIHEDOcpiDdHWPy1Nha1F6yr NziLfnKjm2gHQzICbPdlGRim5myiFg+e0l3SLKAyZE3fTiqFQKMjvJHhC0uD KUldrDNtNYVAmUZCy/+VX+iHgk52BuOW3CTwSjJxYgLVTccDn3GmWqdRTD/b Dmee9ctCl/bMeKu7lsYTi+NJYP8uzFczlNPnQ/8wGECKBNOpOwalIg+hLi1K d2P0sSmk5/7E7LnHA3PfGdihfBik8Lub6DQTFtXm/aU4IGLznfrzN3Qshj5u R+8hsQ==

=rrAM

-----END PGP PUBLIC KEY BLOCK-----

RainLoop commented 8 years ago

Try to remove newlines in header.

This key works:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP.js v1.2.0
Comment: http://openpgpjs.org

xsBNBFcZE00BCACpertSiekZ8emoadkCmeztP8Ln0NWemcDCNijf5iqXwWOl
5pa4W5jWbvzfzvwOW/f8Wsa1HzPUJ7WDEV/VUE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FIzyv/7AgCeoNi3kJAN5dI3ABEBAAHCwF8EGAEIABMFAlcZE00J
EMWCdcwKIiZBAhsMAADFRAf/X30kg/zc9E/q27hgVgbhSgWYIseQ/tzNiuFl
ISbOmW73bS+yajXoavPE6s8WYPDJlHmYrw0rGIHEDOcpiDdHWPy1Nha1F6yr
NziLfnKjm2gHQzICbPdlGRim5myiFg+e0l3SLKAyZE3fTiqFQKMjvJHhC0uD
KUldrDNtNYVAmUZCy/+VX+iHgk52BuOW3CTwSjJxYgLVTccDn3GmWqdRTD/b
Dmee9ctCl/bMeKu7lsYTi+NJYP8uzFczlNPnQ/8wGECKBNOpOwalIg+hLi1K
d2P0sSmk5/7E7LnHA3PfGdihfBik8Lub6DQTFtXm/aU4IGLznfrzN3Qshj5u
R+8hsQ==
=rrAM

-----END PGP PUBLIC KEY BLOCK-----
maderluc commented 8 years ago

jap, that worked.

it would be good if the key would be generated without thet line . i have a lot of customers on my domain, so they probably dont know how to handle that ...... can i fix this in the code?

maderluc commented 8 years ago

so i see that the key is generated correctly, but when i select all and copy it. it adds the extra lines! you have a idea why?