participate


Sun Java System Web Server - Sun Web Server 7.0u2 - reverse proxy client authentication response 403
This question is answered.

<<   Back to Forum  |   Give us Feedback
This topic has 9 replies on 1 page.
vn12201
Posts:3
Registered: 3/12/09
Sun Web Server 7.0u2 - reverse proxy client authentication response 403   
Mar 12, 2009 5:35 PM
 
 
There is the ssl client authentication Sun Web Server 7.0u2 on front-end connects to the ssl client authentication Sun web server 7.0u2 on back-end via reverse proxy.

- Using the MS Internet Explorer 6, it always returns "403 forbidden" error
- But it works fine if back-end web server is not a client authentication server

Do we have any way to pass the client certificate from the front-end web server to the back-end server?

Thanks
 
  sriram.natarajan
Posts:365
Registered: 11/13/07
Re: Sun Web Server 7.0u2 - reverse proxy client authentication response 403   
Mar 12, 2009 6:12 PM (reply 1 of 9)  (In reply to original post )
 
 
did you check out this blog
http://blogs.sun.com/meena/entry/configuring_reverse_proxy_in_web

which describes how to store the origin server (your back end server) 's ssl certificate within reverse proxy

this might require you to do some thing like

terminate ssl at the front end (rp)
and initiate ssl been reverse proxy and origin server (back end). this is done simply by using https://<back end server name> provided the back end certificate is installed within the reverse proxy

hope this helps
 
vn12201
Posts:3
Registered: 3/12/09
Re: Sun Web Server 7.0u2 - reverse proxy client authentication response 403   
Sep 17, 2009 2:55 AM (reply 2 of 9)  (In reply to #1 )
 
 
Thanks for your information!

Yes, I did check this blog http://blogs.sun.com/meena/entry/configuring_reverse_proxy_in_web
but it only solves the SSL not SSL Client Authentication.

Both of these web servers have the same CA certificates.
And the reverse proxy works for the back-end SSL web server and the non-SSL web server.
It doens't work for the back-end SSL Client Authentication web server.

Thanks
 
motor
Posts:158
Registered: 8/3/06
Re: Sun Web Server 7.0u2 - reverse proxy client authentication response 403   
Mar 13, 2009 12:57 AM (reply 3 of 9)  (In reply to original post )
 
 
Do we have any way to pass the client certificate from the front-end web server to the back-end server?

http://docs.sun.com/app/docs/doc/819-2630/aebjl?a=view
 
vn12201
Posts:3
Registered: 3/12/09
Re: Sun Web Server 7.0u2 - reverse proxy client authentication response 403   
Mar 13, 2009 11:05 AM (reply 4 of 9)  (In reply to #3 )
 
 
After using the "forward-auth-cert" function, the browser still shows "403 Forbidden".
How can the back-end server get the client certificate?
I tried to use AuthenTrans fn="auth-passthrough", but it didn't work.

Thanks
 
  mv
Posts:1,138
Registered: 4/18/05
Re: Sun Web Server 7.0u2 - reverse proxy client authentication response 403   
Sep 17, 2009 3:11 AM (reply 5 of 9)  (In reply to #4 )
 
 
First tell me what your requirement is , as far as I understand, you need

1. FRONT END WebServer 7.0 acting as reverse proxy, enable SSL on it.

2. BACK END WebServer 7.0 (will call it as Origin Server), enable SSL on it and make SSL Client Certificate Authentication work (where client certificate authentication means it should authenticate client certificates sent by browser).


Some references :
1. As per http://docs.sun.com/app/docs/doc/820-4841/aebjl?a=view, "forward-auth-cert" by default sends Client(browser) certificate as header "Proxy-auth-cert" to origin server.

2. As per http://forums.sun.com/thread.jspa?threadID=5397719
"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."
 
mikeo121
Posts:1
Registered: 9/17/09
Subject blocked   
Sep 17, 2009 3:59 AM (reply 6 of 9)  (In reply to #5 )
 




 
User/Message blocked
 
  mv
Posts:1,138
Registered: 4/18/05
Re: Sun Web Server 7.0u2 - reverse proxy client authentication response 403   
Sep 17, 2009 4:07 AM (reply 7 of 9)  (In reply to #6 )
 
 
Can you share for the benefit of other customers what you did?

1) Added reverse proxy "map" SAF on one Web Server that looks somewhat like (in obj.conf):
...
NameTrans fn="map" from="/" name="reverse-proxy-/" to="/"
...
<Object ppath="*">
Service fn="proxy-retrieve" method="*"
</Object>
 
<Object name="reverse-proxy-/">
Route fn="set-origin-server" server="https://origin-server.sun.com"
</Object>


2) enabled SSL and installed server certificates on both origin server and reverse proxy web server.

3) Enabled client-auth on origin server (if using WS 7.0) in server.xml in http-listener element :
    <ssl><client-auth>required</client-auth></ssl>


4) Enabled client-auth on reverse proxy web server, in server.xml in http-listener element :
    <ssl><client-auth>required</client-auth></ssl>


Anything else?
 
PhHein
Posts:10,727
Registered: 8/16/01
Re: Sun Web Server 7.0u2 - reverse proxy client authentication response 403   
Sep 17, 2009 6:15 AM (reply 8 of 9)  (In reply to #6 )
 
 
mikeo121 wrote:
I've finally managed to get reverse proxy working on 443. In the end I pulled the user's certificate out of the Proxy-auth-cert header. Thanks for the help!

Mike, no link sigs, please.
 
  mv
Posts:1,138
Registered: 4/18/05
Re: Sun Web Server 7.0u2 - reverse proxy client authentication response 403   
Sep 18, 2009 5:05 AM (reply 9 of 9)  (In reply to #7 )
 
 
 
This topic has 9 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