Am Di, 2004-08-10 um 00.59 schrieb Sam Varshavchik:
/Rainer Duffner writes:
Am Mo, 2004-08-09 um 13.09 schrieb Sam Varshavchik:
Rainer Duffner writes:
Hi,
why is it so difficult to import a PGP/GPG-Key ?
I got a PGP-key by mail, but it was sent as an attachement.
So, I tried to send it to myself, encrypted, so that Sqwebmail would
recognize it.
But when I upload it, it's only uploaded as text/plain or
application/octet-stream (Mozilla 1.7.2 and Opera 7.54) - and sqwebmail
doesn't recognize is as GPG-key again.
The MIME type for PGP keys is application/pgp-keys.
Yes, but how do I set that when I upload the keys via sqwebmail ?
When you select an existing key in sqwebmail, and attach it to a message,
sqwebmail sets the correct MIME type.
If you are using some other mail client to send keys via E-mail, it is that
mail client's responsibility to set the correct MIME types.
The webserver knows about these, though:
ROOT@bsd# egrep -i gpg mime.types
ROOT@bsd# egrep -i pgp mime.types
application/pgp-encrypted
application/pgp-keys
application/pgp-signature
None of these MIME types are associated with a file extension. You need
set, for example, "key" as the extension for the application/pgp-keys MIME
type. Then uploading filename.key sets the MIME type accordingly./
Thank you.
I changed it like this:
application/pgp-encrypted
application/pgp-keys key gpg pgp
application/pgp-signature
But the files are still either of type application/octet-stream or
text/plain, depending on weather the key is ascii-armored or not.
I tried to upload them with sqwebmail, squirrelmail and IMP. And with
Evolution and Mozilla 1.7.2.
This is apache 2.0.50 and sqwebmail 4.0.7 on FreeBSD 4.9.
I just tried to disable the mime_magic module, but that didn't help, either.
(I stopped and started apache multiple times)
Any more ideas ?
The thing is, I really like the way encryption and decryption is handled
by sqwebmail, it's just always a problem to get any kinds of keys
imported ;-)
Rainer