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.