On 15:45 Mon 17 Jul     , Nicolas MASSE wrote:

> The problem was maybe that the openca-scep command was missing and the
> certificate too. These two problems are solved, but I have now a third
> problem : the scep CGI is always running wild (100% of my CPU).
> 
> I found a documentation about the perl debugger:
> http://sunsite.ualberta.ca/Documentation/Misc/perl-5.6.1/pod/perldebtut.html

I set up a wrapper around the scep CGI in order to get the env variables
and debug the CGI with

# perl -d scep

I broke its execution with a CTRL-C and started the debugging.

DB<5> T
  $ = OpenCA::Configuration::parsecfg(ref(OpenCA::Configuration), ... 
  called from file `/usr/lib/perl5/site_perl/5.8.8/OpenCA/Configuration.pm'
  line 135
  $ = OpenCA::Configuration::loadCfg(ref(OpenCA::Configuration),
  '/etc/openca/servers/scep.conf') called from file `scep.bak' line 28

DB<5> l
  193==>                          $line =~ s/^[\s]*//;
  194                     }
  195 
  196                     ## Get the parameter set up
  197:                    my $par = { NAME=>$paramName,
  198                              LINE_NUMBER=>$num,
  199                              VALUES=>[ @values ] };
  200 
  201:                    push ( @configDB, $par);
  202             }

DB<5> p $line
  "-----BEGIN CERTIFICATE-----



So, it seems that there is a bug in my configuration scep.conf !

In fact, I wrote the certificate and the key of the SCEP module directly
in the file "config.xml" and it seems that the config parser did not
like that... (what a stupid error !)

The cert and the key are now in a separate file and this problem is
solved.

Thanks to all people who helped me.

Nicolas MASSE



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to