Print X.509 certificate
Hi all, I've install/configure an Apache server with SSL support (and client authentication). How can I print in the client web page his certificate complete?? Thanks and regards, -- Manuel Gil Perez -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: [OT] Print X.509 certificate
Something like this should do the trick... print `openssl x509 -text < CERTIFICATE.PEM`; - Original Message - From: "Manuel Gil Perez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 06, 2004 12:54 PM Subject: Print X.509 certificate > Hi all, > > I've install/configure an Apache server with SSL support (and client > authentication). How can I print in the client web page his certificate > complete?? > > Thanks and regards, > > -- > Manuel Gil Perez > > > -- > Reporting bugs: http://perl.apache.org/bugs/ > Mail list info: http://perl.apache.org/maillist/modperl.html > List etiquette: http://perl.apache.org/maillist/email-etiquette.html > -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: Print X.509 certificate
Hello there, On Fri, 6 Feb 2004, Manuel Gil Perez wrote: > I've install/configure an Apache server with SSL support (and client > authentication). How can I print in the client web page his certificate > complete?? This is the mod_perl Mailing List. Your question does not appear to be about mod_perl, please take it to a more appropriate forum. 73, Ged. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: Print X.509 certificate
Hi Ged, Excuse me for my question, but it's a dude for this mailing list. If you don't know to answer me, you don't look up any excuse, please. My question is about PERL + APACHE and how this module manage its web variables. It seems one question about mod_perl, no?? Now, I've the following PERL code and I get all variables in text format as i.e. SSL_CLIENT_I_DN_O -> euro6ix and SSL_CLIENT_M_SERIAL -> 0106. How can I get the SSL_CLIENT object?? foreach my $var (keys %ENV) { print "$var -> $ENV{$var} \n"; } Thanks. - Original Message - > Hello there, > > On Fri, 6 Feb 2004, Manuel Gil Perez wrote: > > > I've install/configure an Apache server with SSL support (and client > > authentication). How can I print in the client web page his certificate > > complete?? > > This is the mod_perl Mailing List. Your question does not appear to > be about mod_perl, please take it to a more appropriate forum. > > 73, > Ged. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: Print X.509 certificate
Hello there, On Fri, 6 Feb 2004, Manuel Gil Perez wrote: > Excuse me for my question, but it's a dude for this mailing list. Please refer to Reporting bugs: http://perl.apache.org/bugs/ 73, Ged. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
RE: conference talks
> Large-site > success stories plus implementation specifics would be much > appreciated! http://slashdot.org/faq/tech.shtml#te500 about load on this site http://en.wikipedia.org/wiki/Slashdot_effect -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
[mp2] UDP communications in perl module running under mod_perl2
Apache/2.0.48 (Unix) mod_perl/1.99_12 Perl/v5.8.0 Should I have any difficulty running a simple socket UDP Perl module under the above configuration? Run directly from Perl, I'm able to send/recv from an external server. However, run from the apache server, the recv fails. (I've tried the Perl Socket module and the recv doesn't complete. If I use IO:Socket, the recv returns with a 'connection refused'.) I see the references to APR socket routines in mp2. Do I need to use those? Thanks, Michael Maciag -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
RE: Problem installing libapreq on Win2k
Maurice, Had the exact problem yesterday. The fix we used was to download the libapreq.ppd file its script located in scripts/install_libapreq (http://theoryxy.uwinnipeg.ca/ppms/) Edit the ppd line for the script location. Something like install_libapreq2 We then edited the script itself and added a slot for "\Apache\Apache2" to the "for" loop (line 28) as follows: for my $p ('Apache2', 'Program files/Apache2', 'Program Files/Apache Group/Apache2', '/Apache/Apache2') { Just install the edited ppd and you should be good to go. Did this on a win server 2003/Amd64 beta. Works real nice :) Ray > -Original Message- > From: Maurice Height [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 05, 2004 11:29 PM > To: [EMAIL PROTECTED] > Subject: Problem installing libapreq on Win2k > > The installation of libapreq2 on my machine failed when using > Activestate's > ppm utility. > My setup is Win2K, ActivePerl 5.8.2 build 808 and Apache > v2.0.48 which is > installed under dir D:\Apache\Apache2 > The installation of mod_perl2 1.99_12 from > http://theoryx5.uwinnipeg.ca > using ppm was successful. > > However the installation of libapreq2 failed - here is the output: > -- > -- > > ppm> search libapreq* > Searching in Active Repositories > 1. libapreq-1 [1.2] Apache/1.3.27 Request C Library > 2. libapreq2 [2.03-dev] Apache/2.0.48 Request C library > ppm> install 2 > Package 2: > > Install 'libapreq2' version 2.03-dev in ActivePerl 5.8.2.808. > > Downloaded 31791 bytes. > Extracting 14/14: blib/html/site/lib/Apache2/Apache/Cookie.html > Installing D:\Perl\site\lib\Apache2\auto\Apache\Cookie\Cookie.dll > Installing D:\Perl\site\lib\Apache2\auto\Apache\Cookie\Cookie.lib > Installing D:\Perl\site\lib\Apache2\auto\Apache\Cookie\Cookie.exp > Installing D:\Perl\site\lib\Apache2\auto\Apache\Cookie\Cookie.bs > Installing D:\Perl\site\lib\Apache2\auto\Apache\Request\Request.dll > Installing D:\Perl\site\lib\Apache2\auto\Apache\Request\Request.lib > Installing D:\Perl\site\lib\Apache2\auto\Apache\Request\Request.exp > Installing D:\Perl\site\lib\Apache2\auto\Apache\Request\Request.bs > Installing D:\Perl\html\site\lib\Apache2\Apache\Request.html > Installing D:\Perl\html\site\lib\Apache2\Apache\Cookie.html > Files found in blib\arch: installing files in blib\lib into > architecture > dependent library tree > Installing D:\Perl\site\lib\Apache2\Apache\Cookie.pm > Installing D:\Perl\site\lib\Apache2\Apache\Cookie.pod > Installing D:\Perl\site\lib\Apache2\Apache\Request.pm > Installing D:\Perl\site\lib\Apache2\Apache\Request.pod > > The Apache2 module mod_apreq.so and the dll libapreq2.dll are > needed to > complete the installation. I will now fetch and install > these for you. > > The system cannot find the path specified. > "" does not appear to be version 2.0 at install_script line 45. > unlink D:\Perl\html\site\lib\Apache2\Apache\Cookie.html > unlink D:\Perl\html\site\lib\Apache2\Apache\Request.html > unlink D:\Perl\site\lib\Apache2\Apache\Cookie.pm > unlink D:\Perl\site\lib\Apache2\Apache\Cookie.pod > unlink D:\Perl\site\lib\Apache2\Apache\Request.pm > unlink D:\Perl\site\lib\Apache2\Apache\Request.pod > unlink D:\Perl\site\lib\Apache2\auto\Apache\Cookie\Cookie.bs > unlink D:\Perl\site\lib\Apache2\auto\Apache\Cookie\Cookie.dll > unlink D:\Perl\site\lib\Apache2\auto\Apache\Cookie\Cookie.exp > unlink D:\Perl\site\lib\Apache2\auto\Apache\Cookie\Cookie.lib > unlink D:\Perl\site\lib\Apache2\auto\Apache\Request\Request.bs > unlink D:\Perl\site\lib\Apache2\auto\Apache\Request\Request.dll > unlink D:\Perl\site\lib\Apache2\auto\Apache\Request\Request.exp > unlink D:\Perl\site\lib\Apache2\auto\Apache\Request\Request.lib > unlink D:\Perl\site\lib\auto\libapreq2\.packlist > Can't remove directory C:\TEMP/libapreq2-2752-1076037889: > Permission denied > at D:/Perl/site/lib/PPM/Repository.pm line 2 > 47 > Error: (un)install script failed: 'D:\Perl\bin\perl.exe > install_script' > ppm> > > -- > -- > > Any help would be greatly appreciated. > Many thanks, > Maurice > > > > -- > Reporting bugs: http://perl.apache.org/bugs/ > Mail list info: http://perl.apache.org/maillist/modperl.html > List etiquette: http://perl.apache.org/maillist/email-etiquette.html > *CONFIDENTIALITY NOTICE* This e-mail and any files or attachments may contain confidential and privileged information. If you have received this message in error, please notify the sender at the above e-mail address and delete it and all copies from your system. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Post Request - content-length = 0 with IE
Title: Post Request - content-length = 0 with IE Hello list, I'm trying to override AuthenNTML (PerlAuthenHandler). While doing this i'm having the Problem that all my Post-Variables somehow disappear in MS Internet Explorer (V 6.0). Posting the same page with Mozilla, everything works fine. Looking further even with handler { $r = shift; return OK; } no Post Variables can be found. A uthenNTML seems to handle this Problem, since using it, IE works fine. What is IE doing different? How can I get my Post variables? Thanks in Advance, Greetings from Germany Arne
Re: Calling perl output filter before Includes filter
you could always just do a global search and replace on all the files instead of defering this step to serving time -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: Calling perl output filter before Includes filter
Hamilton, Henrique H wrote: > I am using apache2.0.48 and mod perl 1.99_12. > I've written a mod perl module as a perl output filter that rewrites image > links > to point to another server.[example: becomes src="//someserver.net/www.mysite.com/header.gif">] > My problem is that my perl module doesn't play well with SSI's . > I know if I call the perl module before it's processed by the ssi (INCLUDES > filter) everything will work fine. that sounds like a problem with your logic, not a problem with your filter order :) > Is there a way to force my perl output filter handler to be called BEFORE > the html is parsed by the INCLUDES output filter? see PerlSetOuputFilter http://perl.apache.org/docs/2.0/user/handlers/filters.html#C_PerlSetOutputFilter_ HTH --Geoff -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: Print X.509 certificate
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Friday 06 February 2004 11:54, Manuel Gil Perez wrote: > authentication). How can I print in the client web page his certificate > complete?? with SSLOptions +ExportCertData the client and the server cert are stored in pem format in the SSL_CLIENT_CERT and SSL_SERVER_CERT environmen variables. That means they are accessible via $r->subprocess_env in the fixup and response phases. Torsten -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAI+NmwicyCTir8T4RAnz8AJoCg13iYCdFj4wwvT2MjqzN5RyfaQCgwgOx tMFn5wEWyyg5XXWjLOf7Fmk= =O1V6 -END PGP SIGNATURE- -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Installing modperl under different directory tree
Does anyone know of a way to install modperl 2 under a different directory tree (say under /opt/modperl_1.9.12) in Redhat Linux 7.X? -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: Installing modperl under different directory tree
On 6 Feb 2004, at 19:54, Hamilton, Henrique H wrote: Does anyone know of a way to install modperl 2 under a different directory tree (say under /opt/modperl_1.9.12) in Redhat Linux 7.X? What are you doing with apache? Typically, there are two courses of action: 1. Be a slave to Redhat and do the RPM thing. 2. Build your own apache/mod_perl system. Which of these are you doing? -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://www.rockitfactory.com/ Web sites for rock bands -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
RE: Installing modperl under different directory tree
I'm building modperl2 from source. I was hoping that since I plan on building it as a dso I would be able to compile the dso to point to a different directory. I believe covalent used to sell a apache/modperl/modssl/tomcat package that installed under a directory of the user's choosing. -Original Message- From: David Hodgkinson [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 4:25 PM To: Hamilton, Henrique H Cc: '[EMAIL PROTECTED]' Subject: Re: Installing modperl under different directory tree On 6 Feb 2004, at 19:54, Hamilton, Henrique H wrote: > Does anyone know of a way to install modperl 2 under a different > directory > tree (say under /opt/modperl_1.9.12) in Redhat Linux 7.X? What are you doing with apache? Typically, there are two courses of action: 1. Be a slave to Redhat and do the RPM thing. 2. Build your own apache/mod_perl system. Which of these are you doing? -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://www.rockitfactory.com/ Web sites for rock bands -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: Installing modperl under different directory tree
On 6 Feb 2004, at 21:37, Hamilton, Henrique H wrote: I'm building modperl2 from source. Against a stock RH RPM? I was hoping that since I plan on building it as a dso I would be able to compile the dso to point to a different directory. Why? -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://www.rockitfactory.com/ Web sites for rock bands -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
RE: Installing modperl under different directory tree
I haven't found anywhere that has rpm's for modperl2 on RH 7.3. I also haven't had much luck building modperl2 statically into apache2.0.48. Which means I have to build the rpm myself. (This rpm will eventually be part of an apache2/Tomcat5 rpm) Before I can begin to automate this build process (we'll probably have to push this package out to multiple linux boxes) I need to see if I can build it by hand. My personal preference is to put any non standard software under the /opt filesystem for ease of administration. -Original Message- From: David Hodgkinson [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 4:44 PM To: Hamilton, Henrique H Cc: '[EMAIL PROTECTED]' Subject: Re: Installing modperl under different directory tree On 6 Feb 2004, at 21:37, Hamilton, Henrique H wrote: > I'm building modperl2 from source. Against a stock RH RPM? > I was hoping that since I plan on building it as a dso I would be able > to > compile the dso to point to a different directory. Why? -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://www.rockitfactory.com/ Web sites for rock bands -- Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. -- -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: Installing modperl under different directory tree
On 6 Feb 2004, at 21:53, Hamilton, Henrique H wrote: I haven't found anywhere that has rpm's for modperl2 on RH 7.3. I also haven't had much luck building modperl2 statically into apache2.0.48. Which means I have to build the rpm myself. (This rpm will eventually be part of an apache2/Tomcat5 rpm) Before I can begin to automate this build process (we'll probably have to push this package out to multiple linux boxes) I need to see if I can build it by hand. My personal preference is to put any non standard software under the /opt filesystem for ease of administration. My preference would be to do the classic APACI type build targetted at /opt and then just rsync it out. But I never got on with rpms ;-) which part of the build was giving you trouble? Are your RH7.3s up to date? -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://www.rockitfactory.com/ Web sites for rock bands -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
RE: Installing modperl under different directory tree
Hi guys, On Fri, 6 Feb 2004, Hamilton, Henrique H wrote: > I also haven't had much luck building modperl2 statically into apache2.0.48. Unless I've missed something that's not supported yet I'm afraid. 73, Ged. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
open proxy behavior without obvious open-proxy config
[attempted post previously, but seems to have been silently swallowed.] I have an apache server using mod_proxy that is acting like an open proxy even though I have ProxyRequests turned Off. the conf excerpt: ProxyRequests Off RewriteEngine on RewriteRule ^/$ /index.html #pass requests for / to /index.html RewriteRule ^/index.html http://%{HTTP_HOST}:8008/index.html [P] The 8008 port is modperl with no proxy configurations in httpd.conf at all. Perhaps I'm missing something simple: I guess I want the reverse of ProxyBlock - I want to allow a pass only to a specified set of servers, stopping any external targets. I see from http://www.mail-archive.com/[EMAIL PROTECTED]/msg17546.html that there seems to be a proposal for what I need, 'AllowHttpProxy', but that's as yet unimplemented, afaik. I need the RewriteRule because I need to pass the (in my case) intentionally varying HTTP_HOST in the URL (well, at least, that's how it's currently coded). Given that need, how can I avoid looking like an open proxy? Is the modperl port acting like a default proxy? Commenting out that RewriteRule stops the behavior, so port 80 is not acting like a proxy by itself. Should I add some proxy config in the modperl conf to deliberately set proxy=off? Thanks for any pointers, vince -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Passing data to a custom_response
I was wondering if it was possible to pass data from a handler to a custom_response declared handler within apache2/mod_perl2. I am putting a custom_response on the the HTTP_FORBIDDEN return code to direct the user to a login page (custom_response(Apache::HTTP_FORBIDDEN, 'login.pl')), so if the user/pass doesn't pass muster in the authentication phase, or if they aren't allow to view the page because their permissions aren't high enough in the authorization phase, the handler returns a custom page telling the user to login or what their error was. I'd like to tell them why they are at the custom response page (i.e. they are required to login or they entered and invalid user/pass). I've tried using notes and pnotes that I set in the authentication and authorization phases, but it looks like the custom_response actually creates a new request (or is it a subrequest?), and the notes and pnotes that I set aren't being seen by the ModPerl::Registry login page. Is there any way to pass data to a custom_response defined page? Any better ideas on how to handle this, other than putting it in a get request and redirecting? Thanks -Mike -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html