简体   繁体   English

Apache X509 证书认证模式设置 HTTP 标头

[英]Apache X509 certificate auth mode setting HTTP headers

How can we set X509 certificate parameters in HTTP header from Apache?我们如何在 Apache 的 HTTP 标头中设置 X509 证书参数?

my web proxy configuration contains我的网络代理配置包含

RequestHeader set SSL_CLIENT_CERT "%{SSL_CLIENT_CERT}s"

above will set complete certificate into HTTP header.以上将完整的证书设置为 HTTP 标头。 I will get it from HTTP header in my servlet.我将从我的 servlet 中的 HTTP 标头中获取它。

But I need to set individual parameter like但我需要设置单个参数,

SSL_CLIENT_S_DN_CN
SSL_CLIENT_I_DN_OU

I have set like this,我是这样设置的

RequestHeader set SSL_SERVER_S_DN_O "%{SSL_SERVER_S_DN_O}s"
RequestHeader set SSL_SERVER_I_DN_OU "%{SSL_SERVER_I_DN_OU}s"

But its not working!但它不工作!

Is there any parser/modules available for do this in Apache?在 Apache 中是否有任何解析器/模块可用于执行此操作? Please help me on this.请帮我解决这个问题。

Sorry folks, Forgot to load module.抱歉各位,忘记加载模块了。

LoadModule headers_module modules/mod_ssl.so

After adding this I can set and retrieve all available parameter in certificate.添加后,我可以设置和检索证书中的所有可用参数。

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

相关问题 将X509证书放入HTTP请求中 - Putting X509 Certificate in HTTP Request 如何创建X509自签名证书以在Apache Tomcat中使用 - How to create X509 self signed certificate for use in Apache Tomcat Ansible X509证书缺失主题备用名称 - Ansible X509 certificate missing Subject Alternative Name Apache如何从X509解析DN - How does Apache parse DN from X509 生成没有名称空间前缀android(ds :)的x509证书 - Generate x509 certificate without name space prefix android (ds:) Traefik ssl 容器 - '500 Internal Server Error' 由以下原因引起:x509:证书对 127.0.0.1、::1 有效,而不是 172.xxx - Traefik ssl containers - '500 Internal Server Error' caused by: x509: certificate is valid for 127.0.0.1, ::1, not 172.x.x.x 带有Apache mod_proxy_wstunnel的Websocket到带有javax.servlet.request.X509的tomcat - Websocket with apache mod_proxy_wstunnel to tomcat with javax.servlet.request.X509Certificate 针对X.509客户端身份验证的Apache + mod_ssl中间CA自动发现 - Apache + mod_ssl intermediate CA auto discovery for X.509 client auth X509Certificate 中的公钥和私钥 - Public and private key in X509Certificate 有条件地在apache中设置缓存头 - Conditionally setting cache headers in apache
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM