Hi all,
I'm intended install and configure the OpenCA to manage the certificate on my
own test server.And there are my steps as below: First I've installed the
prerequest tools including
perl-5.16.0.tar.gz,openssl-0.9.8x,DBI-1.622_901.tar.gz,mysql-5.5.27-linux2.6-i686.tar.gz,httpd-2.4.2.tar.gz,openca-tools-1.3.0.tar.gz,openca-base-1.1.1.tar.gz.By
the way ,my system is Ubuntu 11.04.
The details of the installation are like this:
#tar perl-5.16.0.tar.gz
#cd perl-5.16.0
#./Configure -des
# make test
# make install
##############
#tar xzvf openssl-0.9.8x.tar.gz
#cd openssl-0.9.8x
#./config --prefix=/usr/local --openssldir=/usr/local/openssl
#make
#make test
#make install
###############
#tar xzvf DBI-1.622_901.tar.gz
#cd DBI-1.622_901
#perl Makefile.PL
#make
#make test
#make install
###################
###the details of install and configure the database of mysql####
################################
#tar xzvf httpd-2.4.2.tar.gz
#cd httpd-2.4.2
#./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr
--with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
#make
#make install
#/usr/local/apache2 /bin/apachectl start
#################################
#tar zxvf openca-tools-1.3.0.tar.gz
#cd openca-tools-1.3.0
#./configure --prefix=/usr/local/openca-tools
--with-openssl-prefix=/usr/local/openssl LDFLAGS=-ldl
#make
#make install
################################
#tar xzvf openca-base-1.1.1.tar.gz
##cd openca-base-1.1.1
#./configure --prefix=/usr/local/openca
--with-openca-tools-prefix=/usr/local/openca-tools --with-httpd-user=root
--with-httpd-group=root --with-web-host=localhost
--with-httpd-fs-prefix=/usr/local/apache2
--with-htdocs-fs-prefix=/usr/local/apache2/htdocs/pki --with-db-name=openca
--with-db-type=mysql --with-db-passwd=openca --with-auth-user=root
--with-auth-password=openca
#make
#make install-offline install-online
#cd /root/abiao-disk/openca/openca-base-1.1.1-补丁/
#cp User.pm /usr/local/openca/lib/openca/perl_modules/perl5/OpenCA/User.pm
#cp initServer /usr/local/openca/lib/openca/functions/initServer
#cd /usr/local/openca/etc/openca
#./configure_etc.sh
#/usr/local/apache2/bin/apachectl restart
#/usr/local/openca/etc/init.d/openca start
####################################
After installation the above packages,it gives the Installation Details:
=====================
OpenCA Server:
* OpenCA prefix .................: /usr/local/openca
* Build prefix ..................:
* OpenCA User ...................: root
* OpenCA Group ..................: root
* OpenCA Tools prefix ...........: /usr/local/openca-tools
Web Server:
* httpd User ....................: root
* httpd Group ...................: root
* httpd prefix ..................: /usr/local/apache2
* htdocs prefix .................: /usr/local/apache2/htdocs/pki
* cgi prefix ....................: /usr/local/apache2/cgi-bin/pki
* htdocs URL prefix .............: /pki
* cgi URL prefix ................: /cgi-bin/pki
And I only use the command make instll-offline to install the CA .Now I want to
access to my webserver to initialize the CA,but when I type the address as
http://localhost/pki/ca it only gives the reply of perl scripts as below:
#!/usr/bin/perl5
## Certification Authority (HTML Interface)
## (c) 1999-2003 by Massimiliano Pala and OpenCA Group
## All Rights Reserved
use lib '/usr/local/openca/lib/openca/perl_modules/perl5';
use strict;
no warnings;
use OpenCA::Configuration;
our (%AUTOCONF, $config, $common_libs);
%AUTOCONF = ();
$AUTOCONF {"lib_prefix"} = "/usr/local/openca/lib/openca";
$AUTOCONF {"etc_prefix"} = "/usr/local/openca/etc/openca";
$AUTOCONF {"var_prefix"} = "/usr/local/openca/var/openca";
$AUTOCONF {"config_prefix"} = "ca";
$AUTOCONF {"VERSION"} = "1.1.1";
$AUTOCONF {"PROGRAM"} = "CA Manager";
## load library with CGI init
my $CONFIG = $AUTOCONF {"etc_prefix"}.'/servers/'.$AUTOCONF
{"config_prefix"}.'.conf';
$config = new OpenCA::Configuration;
if( not defined (my $ret = $config->loadCfg( "$CONFIG" )) ) {
print STDERR "Error while loading configuration ($CONFIG)!";
print "Content-type: text/html\n\n";
if ( -e $CONFIG ) {
if ( -r $CONFIG ) {
print "The configuration file <b>$CONFIG<b/> can not be parsed!";
} else {
print "The configuration file <b>$CONFIG</b> exists but can not be read!<p>
You probably misconfigured OpenCA during installation. Make sure that you used
the correct user and group for your webserver.<p>
<i>HINT:</i><br>
Under UNIX-like operating systems you can determine the user and group of your
webserver by issuing the following command<br>
# ps -eo \"%U %G %a\"<br>
and look for the process name of your webserver (in most cases httpd)<p>
Use this information when customizing your configure script at the following
configuration options:<br>
--with-httpd-user=<b>user id of webserver</b><br>
--with-httpd-group=apache=<b>group id of webserver</b><br>
";
}
} else {
print "The configuration file <b>$CONFIG</b> does not exist!";
}
exit 100;
}
$common_libs = $config->getParam('CgiLibPath')->{VALUES}->[0];
if( not defined $common_libs or not $common_libs ) {
print STDERR "Error while loading path to the libraries ($CONFIG)!";
print "Content-type: text/html\n\n";
print "Error while loading path to the libraries ($CONFIG)!";
exit 100;
}
require "$common_libs/initCGI";
exit 0;
so,can you tell me why it doesn't display the initialize interface?And could
you help me to resolve this problem?
Thank you!
jiao
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openca-Users mailing list
Openca-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openca-users