There is yet another way to do it.

If you can configure your web server, change the mime type your server 
gives out. By doing so you can download certs over the web.

If you have PHP available on your web server, doing so is even easier, 
because you don't need to change the server config, but only create a 
small script file.

Suppose your PEM format certificate is stored in a file name "cert.pem".

In the same directory of your web server, create a file named 
"getcert.php" with the following contents:

----[snip]----
<?php

header("Content-Type: application/x-x509-ca-cert");
include("cert.pem");

?>
----[snip]----

Access the file getcert.php using Mozilla, and you'll see a dialog that 
asks you whether you want to import and trust the certificate.

Kai


Robert Relyea wrote:
> 
> 
>>> To import Certs in mozilla, you simply need to 'read' them as a mime 
>>> message. I believe mozilla maps file with the extensions 'cacert' and 
>>> 'cert' to the correct mime times.
>>
>>
>>
>> Sorry! No, mozilla does not recognize cacert or cert and reading as a 
>> mime-message does not work either !
> 
> 
> My mistake on the first account. I thought cacert mappings were set up 
> be default. You can enable this by doing the following:
> 
> goto Preferences->Navigator->Helper Applications
> Click on <New Type..>
> Fill in the following fields:
> Descripty of type:   CA Cert
> File Extension:       cacert
> MIME type:   application/x-x509-ca-cert
> 
> Leave the last field blank.
> 
> Now you can click on a .cacert file in your filesystem and it will load 
> it as a ca cert.
> 
> This whole thing should be made much easier. If you do this you can see 
> most of the code is already built into the browser -- it just needs to 
> be turned on.
> 



Reply via email to