You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/03/30 08:42:55 UTC

DO NOT REPLY [Bug 53006] New: SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

             Bug #: 53006
           Summary: SSLProxy to server with wildcard certificate requires
                    'SSLProxyCheckPeerCN off'
           Product: Apache httpd-2
           Version: 2.4.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_ssl
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: petterb@gmail.com
    Classification: Unclassified


Server: https://aftenposten.www2.dk/
CN: *.www2.dk

Error_log:
[ssl:info] [pid 26766:tid 139907918526208] [remote 81.19.247.132:443] AH02005:
SSL Proxy: Peer certificate CN mismatch: Certificate CN: *.www2.dk Requested
hostname: aftenposten.www2.dk
[ssl:info] [pid 26766:tid 139907918526208] [remote 81.19.247.132:443] AH01998:
Connection closed to child 0 with abortive shutdown (server
aftenposten-www2-dk.sandbox.userfacts.com:80)
[proxy_http:error] [pid 26766:tid 139907918526208] (502)Unknown error 502:
[client 10.56.114.48:9619] AH01084: pass request body failed to
81.19.247.132:443 (aftenposten.www2.dk)
[proxy:error] [pid 26766:tid 139907918526208] [client 10.56.114.48:9619]
AH00898: Error during SSL Handshake with remote server returned by /
[proxy_http:error] [pid 26766:tid 139907918526208] [client 10.56.114.48:9619]
AH01097: pass request body failed to 81.19.247.132:443 (aftenposten.www2.dk)
from 10.56.114.48 ()

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

Christophe JAILLET <ch...@wanadoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |FixedInTrunk

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

ybudweiser <yb...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ybudweiser@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

--- Comment #9 from ybudweiser <yb...@gmail.com> ---
Verified Working on 2.4.2! :)
Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

--- Comment #4 from Petter Berntsen <pe...@gmail.com> 2012-04-04 14:19:52 UTC ---
I know about that one (i actually triggered Humbedooh to add the last part ;)

But i don't think it's clear that a server with a valid wildcard certificate
will stop working.

That would entail one knows SSLProxyCheckPeerCN does not acknowledge wildcard
certificates.


Relevant part of bullet point for reference:
SSLProxyCheckPeerCN and SSLProxyCheckPeerExpire now default to On, causing
proxy requests to HTTPS hosts with bad or outdated certificates to fail with a
502 status code (Bad gateway)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

--- Comment #3 from Kaspar Brand <as...@velox.ch> 2012-04-04 14:09:51 UTC ---
(In reply to comment #2)
> It seems reasonable that it should be mentioned in the upgrade doc as this
> makes these vhosts stop working after upgrade.

It is already - see second bullet at

http://httpd.apache.org/docs/2.4/upgrading.html#misc

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |covener@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

Kaspar Brand <as...@velox.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|PC                          |All
         OS/Version|Linux                       |All

--- Comment #1 from Kaspar Brand <as...@velox.ch> 2012-04-04 13:55:53 UTC ---
That's right, mod_ssl currently doesn't have support for wildcard matching in
proxy SSL connections (ssl_engine_io.c:ssl_io_filter_handshake() does a
strcasecmp of the hostname only).

SSLProxyCheckPeerCN defaults to "off" in 2.2, while in 2.4 it is "on" (if you
haven't encountered the issue with previous httpd releases, then this is why -
or you might have used a release before 2.2.12, when it was added for 2.2).

We could implement this with code similar to the one added to
ssl_engine_init.c:ssl_check_public_cert() with r1176752 (where it has a purely
diagnostic purpose, though).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

--- Comment #11 from Kaspar Brand <as...@velox.ch> ---
Backported to 2.4.x in r1388547 - to appear in 2.4.4.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

--- Comment #10 from Joe Orton <jo...@redhat.com> ---
Thanks for testing it out.

Done in r1375584.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

--- Comment #8 from Petter Berntsen <pe...@gmail.com> ---
Works! :)

I verified by commenting out the SSLProxyCheckPeerExpire directive - making the
site fail. Patch, and voila, the site works again.

Enabling the directive again has no apparent effect, as i expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

--- Comment #5 from Kaspar Brand <as...@velox.ch> 2012-04-04 14:32:33 UTC ---
Ah, sorry for misinterpreting your previous comment. I think it would make
sense to mention this limitation in both the upgrade docs and in the reference
section about SSLProxyCheckPeerCN
(http://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslproxycheckpeercn).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

--- Comment #2 from Petter Berntsen <pe...@gmail.com> 2012-04-04 14:07:26 UTC ---
I see.

It seems reasonable that it should be mentioned in the upgrade doc as this
makes these vhosts stop working after upgrade.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

Joe Orton <jo...@redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #29240|0                           |1
        is obsolete|                            |

--- Comment #7 from Joe Orton <jo...@redhat.com> ---
Created attachment 29241
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29241&action=edit
patch v2

That had from an off-by-one.  Try this instead?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

Stefan Fritsch <sf...@sfritsch.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Stefan Fritsch <sf...@sfritsch.de> ---
fixed in 2.4.4

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


[Bug 53006] SSLProxy to server with wildcard certificate requires 'SSLProxyCheckPeerCN off'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53006

--- Comment #6 from Joe Orton <jo...@redhat.com> ---
Created attachment 29240
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29240&action=edit
mod_ssl wildcard proxy cn match

Can you try this patch?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org