简体   繁体   English

带有Apache mod_proxy_wstunnel的Websocket到带有javax.servlet.request.X509的tomcat

[英]Websocket with apache mod_proxy_wstunnel to tomcat with javax.servlet.request.X509Certificate

This is my Situation: 这是我的情况:

Browser<---HTTPS/WSS--->Apache-httpd<---HTTP/WS--->Tomcat(v7) 浏览器<--- HTTPS / WSS ---> Apache的httpd的<--- HTTP / WS --->的Tomcat(V7)

Is it possible to get the javax.servlet.request.X509Certificate in a Servlet Filter using mod_proxy_wstunnel reverse proxy? 是否可以使用mod_proxy_wstunnel反向代理在Servlet过滤器中获取javax.servlet.request.X509Certificate? Thats my config: 多数民众赞成在我的配置:

ProxyPass /ws ws://space4-20.<***>.ch:8080/ws nofailover=On ProxyPassReverse /ws ws://space4-20.<***>.ch:8080/ws ProxyPass / ajp://space4-20.<***>:8009/ nofailover=On ProxyPassReverse / ajp://space4-20.<***>:8009/

If i connect directly to the tomcat(without apache) i can access it like this: 如果我直接连接到tomcat(没有Apache),我可以这样访问它:

request.getAttribute("javax.servlet.request.X509Certificate");

But with the reverse proxy i don't have any attributes. 但是使用反向代理,我没有任何属性。 Is it maybe because between the apache and the tomcat there is no SSL? 是否可能是因为apache和tomcat之间没有SSL? But as I understood this doesn't matter, because if I do a normal HTTPS request i get all the SSL Information in the tomcat. 但是据我了解,这无关紧要,因为如果我执行普通的HTTPS请求,我会在tomcat中获取所有SSL信息。 I think thats because I have this: 我认为那是因为我有这个:
SSLOptions +StdEnvVars +ExportCertData
But I think mod_proxy_wstunnel doesn't use that config. 但是我认为mod_proxy_wstunnel不使用该配置。

Can somebody help me? 有人可以帮我吗? Thank you in advance! 先感谢您!

It IS because between the apache and the tomcat there is no SSL. 这是因为在apache和tomcat之间没有SSL。 For "normal" HTTPS, you are using AJP instead of HTTP. 对于“常规” HTTPS,您使用的是AJP而不是HTTP。 AJP pass authentication information to Tomcat. AJP将身份验证信息传递给Tomcat。

Your "situation" really is: Browser<---HTTPS/WSS--->Apache-httpd<--- AJP /WS--->Tomcat(v7) 您的“情况”实际上是:浏览器<--- HTTPS / WSS ---> Apache-httpd <--- AJP / WS ---> Tomcat(v7)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “ javax.servlet.request.X509Certificate”请求属性未返回CA证书 - “javax.servlet.request.X509Certificate” request attribute does not return CA certs Request.getAttribute(“javax.servlet.request.X509Certificate”)返回Null - Request.getAttribute(“javax.servlet.request.X509Certificate”) Returns Null 未设置getAttribute(“javax.servlet.request.X509Certificate”)(Spring,CXF,Jetty,JAX-RSv1.1) - getAttribute(“javax.servlet.request.X509Certificate”) not set (Spring,CXF,Jetty,JAX-RSv1.1) 证书请求到X.509 - Certificate request to X.509 javax.servlet.ServletException:Servlet执行引发异常:org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) - javax.servlet.ServletException: Servlet execution threw an exception:org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) 如何创建X509自签名证书以在Apache Tomcat中使用 - How to create X509 self signed certificate for use in Apache Tomcat javax.security.cert.X509Certificate vs java.security.cert.X509Certificate? - javax.security.cert.X509Certificate vs java.security.cert.X509Certificate? javax.security.cert.X509Certificate与java.security.cert.X509Certificate之间不兼容 - Incompatibility between javax.security.cert.X509Certificate and java.security.cert.X509Certificate Websocket Apache 2.4.x代理Tomcat 7.x open事件仅在浏览器端发生 - Websocket Apache 2.4.x Proxy Tomcat 7.x open event happens only on browser side Apache,Tomcat和mod代理http设置 - Apache, Tomcat and mod proxy http set up
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM