Hi,Dear Sir:
I need help. Now I am trying to build a web based CA on base of
SSLeay-0.8.0 and apache-ssl/1.2.0. When I run path/ssl/bin/ca in a cgi
program (shell),the problem ocuured.
test.sh:
#!/bin/sh
echo "Content-type:text/html"
echo
ca -keyfile ./cakey.pem -cert ./cacert.pem -key mypasswd \
-outdir . -policy policy_anything -batch -days 360 \
-spkac ./myrequest 1>./log 2>&1
echo "status=$?"
when I run test.sh manually,it work properly,output "status=0" and
the log
contain the correct output.But when I run it through web(as a cgi),it
failed:
the log contain the output:
Using configuration from
/export/home/ope/security/sechttpd/ssl/lib/ssleay.cnf
error on line 6 of config file
'/export/home/ope/security/sechttpd/ssl/lib/ssleay.cnf'
17324:error:0E065068:configuation file routines:STR_COPY:variable has
no value:conf.c:596
and the browser output "status=1".(I think ssleay.cnf has no
problem)
I delete the redirect command "1>./log 2>&1", but still no error
message output to browser.
I don't know what's wrong! Can "ca" run in cgi enviroment?
Anxious for help!
thanks
LiuJianHang
+-------------------------------------------------------------------------+
| Administrative requests should be sent to [EMAIL PROTECTED] |
| List service provided by Open Software Associates, http://www.osa.com/ |
+-------------------------------------------------------------------------+