So you mean save the file to disk then open in from explorer? Here is my
code in ASP for sending the cert to IE:
<%
'Finding root cert
strScriptPath = Request.ServerVariables("PATH_TRANSLATED")
strPathOnly = Left(strScriptPath, InStrRev(strScriptPath, "\"))
strRootCertFile = strPathOnly + "root.cacert"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set RootCert = objFSO.OpenTextFile(strRootCertFile)
strRootCert = RootCert.ReadAll
'Sending certificate contect to client
Response.ContentType="application/x-x509-ca-cert"
Response.AddHeader "Content-disposition", "rootcert.pem"
Response.Write(strRootCert)
%>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rodrigo Coronado
Sent: 14 Agustus 2000 10:34
To: [EMAIL PROTECTED]
Subject: Re: Problem with root cert on web page.
Hi Benny. It was an error. I have IE 5.0 of course. And I did it again just
a
few minutes ago from IE 4.0. After that dialog box try "opening
the file from...bla bla".
Rodrigo.
Benny Chandra wrote:
I think the latest version of IE is 5.5? How can you get IE 5.9, or it
is not for PC?. I try sending MIME header application//x-x509-ca-cert
in IE 5.01 and it open save dialog box instead intalling those
certificate.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Rodrigo Coronado
Sent: 11 Agustus 2000 23:17
To: [EMAIL PROTECTED]
Subject: Re: Problem with root cert on web page.
Yes you can. I did in IE 5.9 it and it worked just fine. This is my
Perl
code:
#!/usr/bin/perl
require 5.003;
use strict;
use CGI;
my $cert_dir = "/usr/local/ssl/private";
my $cert_file = "CAcert.pem";
my $query = new CGI;
my $tipo = $query->param('FORMAT');
if ($tipo eq 'DER') { $cert_file = "CAcert.der"; }
my $cert_path = "$cert_dir/$cert_file";
my $data = "";
open(CERT, "<$cert_path");
while(<CERT>) { $data .= $_; }
close(CERT);
print "Content-Type: application/x-x509-ca-cert\n";
print "Content-Length: ", length($data), "\n\n$data";
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]