participate


Sun Java System Web Server - Unable to access Client Side certificate in Reverse Proxy configuration WS7
<<   Back to Forum  |   Give us Feedback
This topic has 3 replies on 1 page.
dbolack
Posts:8
Registered: 4/5/06
Unable to access Client Side certificate in Reverse Proxy configuration WS7   
Jul 15, 2009 2:16 PM

 
I'm attempting to configure WebServer 7u3 in reverse proxy on port 80 and 443. Things seem to finally be working excpet for one problem, the 443 instance on the origin ( odd term there ) server sees the reverse proxy's certificate as the client side certificate instead of being passed the user's certificate.

The configuration has the Reverse Proxy on 443 signed by the same CA as the origin and both requiring a client certificate. When code attempts to look into the values of the user's certificate used for additional verification, it is definately the Reverse Proxy's certificate.

How do I resolve this? Surely there must be a way for the reverse proxy to pass along the certificate?
 
elving
Posts:1,094
Registered: 5/4/04
Re: Unable to access Client Side certificate in Reverse Proxy configuration WS7   
Jul 15, 2009 10:23 PM (reply 1 of 3)  (In reply to original post )

 
By default, the reverse proxy stores the client's certificate in the Proxy-auth-cert HTTP header.

The reverse proxy cannot, however, authenticate to the origin server using the client's certificate. That's a fundamental characteristic of public key infrastructure.
 
dbolack
Posts:8
Registered: 4/5/06
Re: Unable to access Client Side certificate in Reverse Proxy configuration WS7   
Jul 16, 2009 6:37 AM (reply 2 of 3)  (In reply to #1 )

 
It is, though, possible to pull the user's certificate out of the Proxy-auth-cert header and put it into an X509Certificate object?
 
elving
Posts:1,094
Registered: 5/4/04
Re: Unable to access Client Side certificate in Reverse Proxy configuration WS7   
Jul 16, 2009 9:21 PM (reply 3 of 3)  (In reply to #2 )

 
Yes, there's enough information to construct an X509Certificate from the contents of the Proxy-auth-cert header. Here's an example of how the Sun web container does it: http://fisheye5.cenqua.com/browse/glassfish/appserv-core/src/java/com/sun/enterprise/web/ProxyHandlerImpl.java?r=MAIN#l67.
 
This topic has 3 replies on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 54
  • Guests : 135

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums