Hi Zed,
Thanks for the reply. I'm new to Ruby, Mongrel, Rails, etc. So please
bear with me...
On 10/12/06, Zed A. Shaw <[EMAIL PROTECTED]> wrote:
> You have some need to send the client's certificate in a bizarre header? Ok,
> before I go about answer your question you should probably explain what it is
> you're trying to do with this. There might be a simpler way.
Actually, no - I don't have any use for this header that Pound sends
Mongrel. But, AFAIK there's no way to remove it from the headers Pound
sends (ok, I could go in an hack Pound's source, but I want to have
standard code on my boxes...)
> If you work up a test case that demonstrates it (preferably a patch to the
> mongrel tests) then I can fix it up.
ok, as I've said I'm new to Ruby and I'm using developing this
application as a way to learn. This may take some time!
> One thing you didn't do is give me information from the mongrel.log. There
> should have been BAD CLIENT information in there.
There's nothing in mongrel.log apart from the standard startup blurb. I.e:
** Daemonized, any open files are closed. Look at log/mongrel.pid and
log/mongrel.log for info.
** Starting Mongrel listening at 127.0.0.1:3000
...
** Writing PID file to log/mongrel.pid
> You also didn't turn on USR1 logging so that Mongrel dumps the whole request
> that caused BAD CLIENT errors. If you do send in a test case then include
> this information too.
Thanks for the USR1 tip: when I turn on USR1 I get the output at the
bottom of the email. Is it the \r\n\t's in the "X-SSL-certificate"
header that's the problem here?
Thanks again,
Michael.
** USR1 received, toggling $mongrel_debug_client to true
Thu Oct 12 11:04:48 +0100 2006: BAD CLIENT (127.0.0.1): Invalid HTTP
format, parsing fails.
Thu Oct 12 11:04:48 +0100 2006: REQUEST DATA: "GET /
HTTP/1.1\r\nUser-Agent: curl/7.13.1 (powerpc-apple-darwin8.0)
libcurl/7.13.1 OpenSSL/0.9.7i zlib/1.2.3\r\nHost:
127.0.0.1:3001\r\nPragma: no-cache\r\nAccept:
*/*\r\nX-Forwarded-Proto: https\r\nX-SSL-Subject: C = xx, O =
xx, OU = xx, L = xx, CN = michael parkin\r\nX-SSL-Issuer: C =
UK, O = eScience, OU = Authority, CN = CA, emailAddress =
[EMAIL PROTECTED]: Jun 19 12:10:30
2006 GMT\r\nX-SSL-notAfter: Jun 19 12:10:30 2007 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SHA SSLv3 Kx=RSA
Au=RSA Enc=AES(256) Mac=SHA1\r\nX-Forwarded-For:
xxx.xxx.xxx.xxx\r\n\r\n"
---
PARAMS: {"HTTP_X_SSL_NOTBEFORE"=>"Jun 19 12:10:30 2006 GMT",
"HTTP_USER_AGENT"=>"curl/7.13.1 (powerpc-apple-darwin8.0)
libcurl/7.13.1 OpenSSL/0.9.7i zlib/1.2.3",
"HTTP_HOST"=>"127.0.0.1:3001", "HTTP_X_SSL_ISSUER"=>"C = UK, O =
eScience, OU = Authority, CN = CA, emailAddress =
[EMAIL PROTECTED]", "REQUEST_PATH"=>"/",
"HTTP_VERSION"=>"HTTP/1.1", "HTTP_X_SSL_CERTIFICATE"=>"-----BEGIN
CERTIFICATE-----", "REQUEST_URI"=>"/", "HTTP_X_SSL_NOTAFTER"=>"Jun 19
12:10:30 2007 GMT", "HTTP_X_FORWARDED_PROTO"=>"https",
"HTTP_PRAGMA"=>"no-cache", "HTTP_X_SSL_SERIAL"=>"8071",
"HTTP_X_SSL_SUBJECT"=>"C = xx, O = xx, OU = xx, L = xx, CN = michael
parkin", "HTTP_ACCEPT"=>"*/*", "REQUEST_METHOD"=>"GET"}
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users