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


Here's file loadcacert.php (it's loadcacert.cgi translated from Perl to PHP). It
loads a CA certificate into Netscape Communicator. The first and last lines
begin with "<?php" and "?>" respectively:

<?php
        #  loadcacert.php -- Load a CA certificate into Communicator
        #  Copyright (c) 1998-2000 Ralf S. Engelschall, All Rights Reserved.
        #  Translated into PHP, 4/2001 Dan Anderson

        $crtFileName = "/usr/local/apache/conf/sl.crt/drydog.ca.crt";
        $len = filesize($crtFileName);

        $server_protocol = getenv("SERVER_PROTOCOL");
        $server_software = getenv("SERVER_SOFTWARE");

        header("$server_protocol 200 OK");
        header("Server: $server_software");
        header("Content-type: application/x-x509-ca-cert");
        header("Content-length: $len");
        # Must have a blank line here.

        include $crtFileName;
        flush();
?>


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

Reply via email to