You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Kirk Rogers <ki...@verizon.net> on 2002/03/18 16:08:35 UTC

checking a site for ssl cert?

hello,
kind of a long shot but does anyone know if its possible to check a site for
ssl certificate information from a mod perl handler or perl script?

thanks
k



Re: [OT] checking a site for ssl cert?

Posted by Issac Goldstand <ma...@beamartyr.net>.
IT's a feature of mod_ssl, not of mod_perl, so the answer is no, it does 
not need another module to be accessed by standalone perl.

  Issac

Kirk Rogers wrote:

>What about a standalone CGI script?  Is there some module or package I need
>acquire or is it also exported into %ENV?
>
>Thanks,
>K
>
>
>>-----Original Message-----
>>From: Issac Goldstand [mailto:margol@beamartyr.net]
>>Sent: Monday, March 18, 2002 7:16 AM
>>To: kirk.rogers@verizon.net
>>Cc: modperl
>>Subject: Re: checking a site for ssl cert?
>>
>>
>>Kirk Rogers wrote:
>>
>>>hello,
>>>kind of a long shot but does anyone know if its possible to check
>>>
>>a site for
>>
>>>ssl certificate information from a mod perl handler or perl script?
>>>
>>>thanks
>>>k
>>>
>>it's all exported into %ENV if you do:
>>
>>SSLOptions + StdEnvVars
>>
>> Issac
>>


RE: checking a site for ssl cert?

Posted by Kirk Rogers <ki...@verizon.net>.
What about a standalone CGI script?  Is there some module or package I need
acquire or is it also exported into %ENV?

Thanks,
K


>-----Original Message-----
>From: Issac Goldstand [mailto:margol@beamartyr.net]
>Sent: Monday, March 18, 2002 7:16 AM
>To: kirk.rogers@verizon.net
>Cc: modperl
>Subject: Re: checking a site for ssl cert?
>
>
>Kirk Rogers wrote:
>
>>hello,
>>kind of a long shot but does anyone know if its possible to check
>a site for
>>ssl certificate information from a mod perl handler or perl script?
>>
>>thanks
>>k
>>
>it's all exported into %ENV if you do:
>
>SSLOptions + StdEnvVars
>
>  Issac
>
>
>


Re: 2 httpd processes looping in SQL statement

Posted by Perrin Harkins <pe...@elem.com>.
Andre Terroux wrote:
> Hi Team, new subscriber here hoping someone can help me out. I'm getting a
> weird behavior with Apache: after running for a while, always two httpd
> processes have to be restarted because they use up around 8% of CPU each.

This is probably caused by a bug in your perl code.  You should try to 
figure out what sort of request triggers it.  Maybe you can add some 
logging to your application or use the MOD_PERL_TRACE feature to figure 
it out.

- Perrin


2 httpd processes looping in SQL statement

Posted by Andre Terroux <An...@openwave.com>.
Hi Team, new subscriber here hoping someone can help me out. I'm getting a
weird behavior with Apache: after running for a while, always two httpd
processes have to be restarted because they use up around 8% of CPU each.
Does this ring a bell to anyone? The following are a truss output and gcore
stack of one of the faulty process. The truss output shows a continuous
looping: a read, 9 calls to sigaction and a write. The gcore stack shows the
process deep in libperl.so. Any feedback would be appreciated - thank you -
Andre.

4812/1:         psargs: /usr/up/mms/tools/apache/bin/httpd
4812/1:         read(5, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)     = 524
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
4812/1:             new: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:             old: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
4812/1:             new: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:             old: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
4812/1:             new: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:             old: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
4812/1:             new: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:             old: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
4812/1:             new: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:             old: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
4812/1:             new: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:             old: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
4812/1:             new: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:             old: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
4812/1:             new: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:             old: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
4812/1:             new: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:             old: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:         write(5, "\0\01F02\0\0\0\0\0\0\0\0".., 24)      = 24
4812/1:         read(5, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192)     = 488
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
4812/1:             new: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:             old: hand = 0xFE8C7CB4 mask = 0xFFBFFEFF 0x00001FFF 0 0
flags = 0x000C
4812/1:         sigaction(SIGPIPE, 0xFFBEF3E8, 0xFFBEF4E8)      = 0
...

   current LWP ($lwp) is l@1
=>[1] __sigaction(0x0, 0xd652048, 0xffbef440, 0x4, 0x0, 0x1), at 0xff2168f4
  [2] _setsighandler(0xfe8e529c, 0xd0, 0xffbef344, 0xfe8de000, 0xd,
0xffbef460), a
t 0xfe8c8dfc
  [3] _sigaction(0xd, 0xffbef460, 0xffbef440, 0xd98958, 0xd, 0xfee7b52c), at
0xfe8
c8968
  [4] Perl_rsignal(0xd, 0xfee82608, 0x800000, 0xffffffff, 0x74, 0x74), at
0xfee7b5
2c
  [5] Perl_magic_setsig(0x47e19c, 0xfef18400, 0xfef17c00, 0x34, 0x435d18,
0xd), at
 0xfee7ee90
  [6] Perl_mg_set(0x47e19c, 0x210, 0x0, 0xdd210c, 0x7, 0x80803), at
0xfee7d03c
  [7] Perl_pp_sassign(0x47e19c, 0xfef18534, 0xfef18400, 0xfef18400,
0x4f6810, 0x4f
680c), at 0xfee8843c
  [8] Perl_runops_standard(0xfef18534, 0x0, 0xfef18400, 0x1, 0x0,
0xffbef74d), at
0xfee87dec
  [9] Perl_call_sv(0xfef18400, 0xfef18000, 0xfef18400, 0xfef18800,
0xfef18400, 0xf
ef18000), at 0xfee35a20
  [10] perl_call_handler(0x6d916c, 0xaac, 0x800, 0xb24, 0xc00, 0xca8), at
0xfee1a3
08
  [11] perl_handler(0xfef1260c, 0xfef18808, 0xfef0b194, 0x0, 0x74, 0x74), at
0xfee
194c4
  [12] ap_invoke_handler(0x6b7c20, 0x148394, 0x0, 0x0, 0x18, 0x18), at
0x5ac14
  [13] process_request_internal(0x6b7c20, 0xfec3114c, 0xff31ae30,
0xffbef970, 0x4,
 0x1), at 0x748bc
  [14] ap_process_request(0x6b7c20, 0x4, 0x6b7c20, 0xffbef9fc, 0xffbefa0c,
0x1b),
at 0x74948
  [15] child_main(0x1b, 0x680d0, 0x0, 0x0, 0x21860, 0x69e94), at 0x69c30
  [16] make_child(0x17d670, 0x1b, 0x3c57292f, 0xff239164, 0xff239164,
0xffbefb10),
 at 0x69f2c
  [17] perform_idle_server_maintenance(0xffffffff, 0x134a, 0xe, 0x17d670,
0x146784
, 0x13883c), at 0x6a3e0
  [18] standalone_main(0x1, 0xffbefd14, 0x165e24, 0xff236000, 0xff238fbc,
0x14690c
), at 0x6aa30
  [19] main(0x1, 0xffbefd14, 0xffbefd1c, 0x164800, 0x0, 0x0), at 0x6b2e0
(dbx)




Re: checking a site for ssl cert?

Posted by Issac Goldstand <ma...@beamartyr.net>.
Kirk Rogers wrote:

>hello,
>kind of a long shot but does anyone know if its possible to check a site for
>ssl certificate information from a mod perl handler or perl script?
>
>thanks
>k
>
it's all exported into %ENV if you do:

SSLOptions + StdEnvVars

  Issac