Full_Name: Dan Anderson
Version: 2.8.2-1.3.19
OS: Linux 2.2.19
Submission from: (NULL) (24.161.160.5)


File loadcacert.cgi, which loads a CA certificate, needs some minor
modifications to run as a mod_perl program (with perl -Tw and "use strict;"):

#!/usr/bin/perl -Tw
##
##  loadcacert.cgi -- Load a CA certificate into Communicator
##  Copyright (c) 1998-2000 Ralf S. Engelschall, All Rights Reserved.
##
##  Added use strict, perl -Tw, 4/2001 Dan Anderson

use strict;

$|++;
#open(FP, "<ca.crt");
open(FP, "</usr/local/apache/conf/ssl.crt/drydogca.crt");

my $cert = '';
$cert .= $_ while (<FP>);
close(FP);
my $len = length($cert);

print "Content-type: application/x-x509-ca-cert\r\n";
print "Content-length: $len\r\n\r\n";
# Must have a blank line here
print $cert;


______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to